Skip to content
Myr

Readme.md

This file

Path

Readme.md

263 lines · 9.0 KiB · Markdown

Last changed by

fix: remove download size badgesWes Toddbefore adoption4f952a9

History of this file

Take it

The walk stopped after 200 commits: lines older than 2d6b735 point at it.

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 1why, one step back
1[![Express Logo](https://i.cloudup.com/zfY6lL7eFa-3000x3000.png)](https://expressjs.com/)

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 2why, one step back
2

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 3why, one step back
3**Fast, unopinionated, minimalist web framework for [Node.js](https://nodejs.org).**

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 4why, one step back
4

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

line 5why, one step back
5**This project has a [Code of Conduct][].**

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 6why, one step back
6

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

lines 7–23why, one step back
7## Table of contents
89* [Installation](#Installation)10* [Features](#Features)11* [Docs & Community](#docs--community)12* [Quick Start](#Quick-Start)13* [Running Tests](#Running-Tests)14* [Philosophy](#Philosophy)15* [Examples](#Examples)16* [Contributing to Express](#Contributing)17* [TC (Technical Committee)](#tc-technical-committee)18* [Triagers](#triagers)19* [License](#license)202122[![NPM Version][npm-version-image]][npm-url]23[![NPM Downloads][npm-downloads-image]][npm-downloads-url]

Merge branch 'master' into 5-mergectcpipbefore adoptionea49706

line 24why, one step back
24[![OpenSSF Scorecard Badge][ossf-scorecard-badge]][ossf-scorecard-visualizer]

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

line 25why, one step back
25

Merge branch 'master' into 5-mergectcpipbefore adoptionea49706

line 26why, one step back
26

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 27why, one step back
27```js

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 28–29why, one step back
28import express from 'express'
29

Merge tag '4.17.1'Douglas Christopher Wilsonbefore adoption121fe99

line 30why, one step back
30const app = express()

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 31why, one step back
31

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 32why, one step back
32app.get('/', (req, res) => {

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

lines 33–38why, one step back
33 res.send('Hello World')
34})3536app.listen(3000)37```38

Merge tag '4.11.1'Douglas Christopher Wilsonbefore adoption8a5ecd3

line 39why, one step back
39## Installation

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 40why, one step back
40

Merge tag '4.16.2'Douglas Christopher Wilsonbefore adoption62e12fe

lines 41–44why, one step back
41This is a [Node.js](https://nodejs.org/en/) module available through the
42[npm registry](https://www.npmjs.com/).4344Before installing, [download and install Node.js](https://nodejs.org/en/download/).

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 45why, one step back
45Node.js 18 or higher is required.

Merge tag '4.16.2'Douglas Christopher Wilsonbefore adoption62e12fe

line 46why, one step back
46

Merge tag '4.17.2'Douglas Christopher Wilsonbefore adoptionc7d528c

lines 47–49why, one step back
47If this is a brand new project, make sure to create a `package.json` first with
48the [`npm init` command](https://docs.npmjs.com/creating-a-package-json-file).49

Merge tag '4.16.2'Douglas Christopher Wilsonbefore adoption62e12fe

lines 50–52why, one step back
50Installation is done using the
51[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):52

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 53–54why, one step back
53```bash
54npm install express

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 55why, one step back
55```

Merge tag '4.16.2'Douglas Christopher Wilsonbefore adoption62e12fe

line 56why, one step back
56

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 57why, one step back
57Follow [our installing guide](https://expressjs.com/en/starter/installing.html)

Merge tag '4.16.2'Douglas Christopher Wilsonbefore adoption62e12fe

line 58why, one step back
58for more information.

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 59why, one step back
59

docs: misc. tweaksFishrock123before adoption5f7a37e

lines 60–71why, one step back
60## Features
6162 * Robust routing63 * Focus on high performance64 * Super-high test coverage65 * HTTP helpers (redirection, caching, etc)66 * View system supporting 14+ template engines67 * Content negotiation68 * Executable for generating applications quickly6970## Docs & Community71

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 72why, one step back
72 * [Website and Documentation](https://expressjs.com/) - [[website repo](https://github.com/expressjs/expressjs.com)]

Merge tag '4.15.4'Douglas Christopher Wilsonbefore adoptionc319fe2

line 73why, one step back
73 * [GitHub Organization](https://github.com/expressjs) for Official Middleware & Modules

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 74why, one step back
74 * [Github Discussions](https://github.com/expressjs/discussions) for discussion on the development and usage of Express

Merge tag '4.14.0'Douglas Christopher Wilsonbefore adoption1dbfee6

line 75why, one step back
75

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 76why, one step back
76**PROTIP** Be sure to read the [migration guide to v5](https://expressjs.com/en/guide/migrating-5)

docs: misc. tweaksFishrock123before adoption5f7a37e

line 77why, one step back
77

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

lines 78–83why, one step back
78## Quick Start
7980 The quickest way to get started with express is to utilize the executable [`express(1)`](https://github.com/expressjs/generator) to generate an application as shown below:8182 Install the executable. The executable's major version will match Express's:83

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 84–85why, one step back
84```bash
85npm install -g express-generator@4

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

lines 86–89why, one step back
86```
8788 Create the app:89

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 90–91why, one step back
90```bash
91express /tmp/foo && cd /tmp/foo

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

lines 92–95why, one step back
92```
9394 Install dependencies:95

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 96–97why, one step back
96```bash
97npm install

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

lines 98–101why, one step back
98```
99100 Start the server:101

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 102–103why, one step back
102```bash
103npm start

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

lines 104–105why, one step back
104```
105

Merge tag '4.17.1'Douglas Christopher Wilsonbefore adoption121fe99

lines 106–107why, one step back
106 View the website at: http://localhost:3000
107

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

lines 108–110why, one step back
108## Philosophy
109110 The Express philosophy is to provide small, robust tooling for HTTP servers, making

Merge tag '4.17.2'Douglas Christopher Wilsonbefore adoptionc7d528c

line 111why, one step back
111 it a great solution for single page applications, websites, hybrids, or public

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

lines 112–114why, one step back
112 HTTP APIs.
113114 Express does not force you to use any specific ORM or template engine. With support for over

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 115why, one step back
115 14 template engines via [@ladjs/consolidate](https://github.com/ladjs/consolidate),

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

lines 116–117why, one step back
116 you can quickly craft your perfect framework.
117

docs: misc. tweaksFishrock123before adoption5f7a37e

line 118why, one step back
118## Examples

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 119why, one step back
119

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 120why, one step back
120 To view the examples, clone the Express repository:

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 121why, one step back
121

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 122–123why, one step back
122```bash
123git clone https://github.com/expressjs/express.git --depth 1 && cd express

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

lines 124–125why, one step back
124```
125

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 126–131why, one step back
126 Then install the dependencies:
127128```bash129npm install130```131

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

lines 132–133why, one step back
132 Then run whichever example you want:
133

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 134–135why, one step back
134```bash
135node examples/content-negotiation

docs: misc. tweaksFishrock123before adoption5f7a37e

line 136why, one step back
136```

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 137why, one step back
137

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

line 138why, one step back
138## Contributing

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 139why, one step back
139

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

lines 140–141why, one step back
140 [![Linux Build][github-actions-ci-image]][github-actions-ci-url]
141 [![Test Coverage][coveralls-image]][coveralls-url]

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 142why, one step back
142

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

lines 143–154why, one step back
143The Express.js project welcomes all constructive contributions. Contributions take many forms,
144from code for bug fixes and enhancements, to additions and fixes to documentation, additional145tests, triaging incoming pull requests and issues, and more!146147See the [Contributing Guide](Contributing.md) for more technical details on contributing.148149### Security Issues150151If you discover a security vulnerability in Express, please see [Security Policies and Procedures](Security.md).152153### Running Tests154

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 155why, one step back
155To run the test suite, first install the dependencies:

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

line 156why, one step back
156

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 157–158why, one step back
157```bash
158npm install

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

lines 159–160why, one step back
159```
160

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 161–166why, one step back
161Then run `npm test`:
162163```bash164npm test165```166

Merge tag '4.11.1'Douglas Christopher Wilsonbefore adoption8a5ecd3

line 167why, one step back
167## People

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 168why, one step back
168

Merge tag '4.16.4'Douglas Christopher Wilsonbefore adoption302a615

line 169why, one step back
169The original author of Express is [TJ Holowaychuk](https://github.com/tj)

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 170why, one step back
170

Merge tag '4.13.4'Douglas Christopher Wilsonbefore adoption7cafdb5

line 171why, one step back
171[List of all contributors](https://github.com/expressjs/express/graphs/contributors)

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

line 172why, one step back
172

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

lines 173–199why, one step back
173### TC (Technical Committee)
174175* [UlisesGascon](https://github.com/UlisesGascon) - **Ulises Gascón** (he/him)176* [jonchurch](https://github.com/jonchurch) - **Jon Church**177* [wesleytodd](https://github.com/wesleytodd) - **Wes Todd**178* [LinusU](https://github.com/LinusU) - **Linus Unnebäck**179* [blakeembrey](https://github.com/blakeembrey) - **Blake Embrey**180* [sheplu](https://github.com/sheplu) - **Jean Burellier**181* [crandmck](https://github.com/crandmck) - **Rand McKinney**182* [ctcpip](https://github.com/ctcpip) - **Chris de Almeida**183184<details>185<summary>TC emeriti members</summary>186187#### TC emeriti members188189 * [dougwilson](https://github.com/dougwilson) - **Douglas Wilson**190 * [hacksparrow](https://github.com/hacksparrow) - **Hage Yaapa**191 * [jonathanong](https://github.com/jonathanong) - **jongleberry**192 * [niftylettuce](https://github.com/niftylettuce) - **niftylettuce**193 * [troygoode](https://github.com/troygoode) - **Troy Goode**194</details>195196197### Triagers198199* [aravindvnair99](https://github.com/aravindvnair99) - **Aravind Nair**

Add @bjohansebas to the triage team (#6009)Ulises Gascónbefore adoption3e1a1ce

line 200why, one step back
200* [bjohansebas](https://github.com/bjohansebas) - **Sebastian Beltran**

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

lines 201–210why, one step back
201* [carpasse](https://github.com/carpasse) - **Carlos Serrano**
202* [CBID2](https://github.com/CBID2) - **Christine Belzie**203* [enyoghasim](https://github.com/enyoghasim) - **David Enyoghasim**204* [UlisesGascon](https://github.com/UlisesGascon) - **Ulises Gascón** (he/him)205* [mertcanaltin](https://github.com/mertcanaltin) - **Mert Can Altin**206* [0ss](https://github.com/0ss) - **Salah**207* [import-brain](https://github.com/import-brain) - **Eric Cheng** (he/him)208* [3imed-jaberi](https://github.com/3imed-jaberi) - **Imed Jaberi**209* [dakshkhetan](https://github.com/dakshkhetan) - **Daksh Khetan** (he/him)210* [lucasraziel](https://github.com/lucasraziel) - **Lucas Soares Do Rego**

Merge tag '4.20.0' into 5.0Wes Toddbefore adoptione5feb9f

line 211why, one step back
211* [IamLizu](https://github.com/IamLizu) - **S M Mahmudul Hasan** (he/him)

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

line 212why, one step back
212* [Sushmeet](https://github.com/Sushmeet) - **Sushmeet Sunger**

docs: add @rxmarbles to the triage team (#6151)Ulises Gascónbefore adoption39f5d63

line 213why, one step back
213* [rxmarbles](https://github.com/rxmarbles) **Rick Markins** (He/him)

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

lines 214–248why, one step back
214
215<details>216<summary>Triagers emeriti members</summary>217218#### Emeritus Triagers219220 * [AuggieH](https://github.com/AuggieH) - **Auggie Hudak**221 * [G-Rath](https://github.com/G-Rath) - **Gareth Jones**222 * [MohammadXroid](https://github.com/MohammadXroid) - **Mohammad Ayashi**223 * [NawafSwe](https://github.com/NawafSwe) - **Nawaf Alsharqi**224 * [NotMoni](https://github.com/NotMoni) - **Moni**225 * [VigneshMurugan](https://github.com/VigneshMurugan) - **Vignesh Murugan**226 * [davidmashe](https://github.com/davidmashe) - **David Ashe**227 * [digitaIfabric](https://github.com/digitaIfabric) - **David**228 * [e-l-i-s-e](https://github.com/e-l-i-s-e) - **Elise Bonner**229 * [fed135](https://github.com/fed135) - **Frederic Charette**230 * [firmanJS](https://github.com/firmanJS) - **Firman Abdul Hakim**231 * [getspooky](https://github.com/getspooky) - **Yasser Ameur**232 * [ghinks](https://github.com/ghinks) - **Glenn**233 * [ghousemohamed](https://github.com/ghousemohamed) - **Ghouse Mohamed**234 * [gireeshpunathil](https://github.com/gireeshpunathil) - **Gireesh Punathil**235 * [jake32321](https://github.com/jake32321) - **Jake Reed**236 * [jonchurch](https://github.com/jonchurch) - **Jon Church**237 * [lekanikotun](https://github.com/lekanikotun) - **Troy Goode**238 * [marsonya](https://github.com/marsonya) - **Lekan Ikotun**239 * [mastermatt](https://github.com/mastermatt) - **Matt R. Wilson**240 * [maxakuru](https://github.com/maxakuru) - **Max Edell**241 * [mlrawlings](https://github.com/mlrawlings) - **Michael Rawlings**242 * [rodion-arr](https://github.com/rodion-arr) - **Rodion Abdurakhimov**243 * [sheplu](https://github.com/sheplu) - **Jean Burellier**244 * [tarunyadav1](https://github.com/tarunyadav1) - **Tarun yadav**245 * [tunniclm](https://github.com/tunniclm) - **Mike Tunnicliffe**246</details>247248

Merge tag '4.11.1'Douglas Christopher Wilsonbefore adoption8a5ecd3

line 249why, one step back
249## License

deps: serve-static@~1.5.4Douglas Christopher Wilsonbefore adoption2d6b735

lines 250–251why, one step back
250
251 [MIT](LICENSE)

docs: misc. tweaksFishrock123before adoption5f7a37e

line 252why, one step back
252

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

line 253why, one step back
253[coveralls-image]: https://badgen.net/coveralls/c/github/expressjs/express/master

Merge tag '4.13.4'Douglas Christopher Wilsonbefore adoption7cafdb5

line 254why, one step back
254[coveralls-url]: https://coveralls.io/r/expressjs/express?branch=master

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 255why, one step back
255[github-actions-ci-image]: https://badgen.net/github/checks/expressjs/express/master?label=CI

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

lines 256–260why, one step back
256[github-actions-ci-url]: https://github.com/expressjs/express/actions/workflows/ci.yml
257[npm-downloads-image]: https://badgen.net/npm/dm/express258[npm-downloads-url]: https://npmcharts.com/compare/express?minimal=true259[npm-url]: https://npmjs.org/package/express260[npm-version-image]: https://badgen.net/npm/v/express

Merge tag '4.20.0' into 5.0Wes Toddbefore adoptione5feb9f

lines 261–262why, one step back
261[ossf-scorecard-badge]: https://api.scorecard.dev/projects/github.com/expressjs/express/badge
262[ossf-scorecard-visualizer]: https://ossf.github.io/scorecard-visualizer/#/projects/github.com/expressjs/express

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

line 263why, one step back
263[Code of Conduct]: https://github.com/expressjs/express/blob/master/Code-Of-Conduct.md