express
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/express package

4.21.1 • Public • Published

Express Logo

Fast, unopinionated, minimalist web framework for Node.js.

This project has a Code of Conduct.

Table of contents

NPM Version NPM Install Size NPM Downloads OpenSSF Scorecard Badge

const express = require('express')
const app = express()

app.get('/', function (req, res) {
  res.send('Hello World')
})

app.listen(3000)

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 0.10 or higher is required.

If this is a brand new project, make sure to create a package.json first with the npm init command.

Installation is done using the npm install command:

$ npm install express

Follow our installing guide for more information.

Features

  • Robust routing
  • Focus on high performance
  • Super-high test coverage
  • HTTP helpers (redirection, caching, etc)
  • View system supporting 14+ template engines
  • Content negotiation
  • Executable for generating applications quickly

Docs & Community

PROTIP Be sure to read Migrating from 3.x to 4.x as well as New features in 4.x.

Quick Start

The quickest way to get started with express is to utilize the executable express(1) to generate an application as shown below:

Install the executable. The executable's major version will match Express's:

$ npm install -g express-generator@4

Create the app:

$ express /tmp/foo && cd /tmp/foo

Install dependencies:

$ npm install

Start the server:

$ npm start

View the website at: http://localhost:3000

Philosophy

The Express philosophy is to provide small, robust tooling for HTTP servers, making it a great solution for single page applications, websites, hybrids, or public HTTP APIs.

Express does not force you to use any specific ORM or template engine. With support for over 14 template engines via Consolidate.js, you can quickly craft your perfect framework.

Examples

To view the examples, clone the Express repo and install the dependencies:

$ git clone https://github.com/expressjs/express.git --depth 1
$ cd express
$ npm install

Then run whichever example you want:

$ node examples/content-negotiation

Contributing

Linux Build Windows Build Test Coverage

The Express.js project welcomes all constructive contributions. Contributions take many forms, from code for bug fixes and enhancements, to additions and fixes to documentation, additional tests, triaging incoming pull requests and issues, and more!

See the Contributing Guide for more technical details on contributing.

Security Issues

If you discover a security vulnerability in Express, please see Security Policies and Procedures.

Running Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test

People

The original author of Express is TJ Holowaychuk

List of all contributors

TC (Technical Committee)

TC emeriti members

TC emeriti members

Triagers

Triagers emeriti members

Emeritus Triagers

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.21.11,485,343latest
5.0.15,795next

Version History

VersionDownloads (Last 7 Days)Published
5.0.15,795
4.21.11,485,343
4.21.010,049,751
5.0.062,918
4.20.0887,125
5.0.0-beta.314,318
4.19.27,507,601
5.0.0-beta.2395
4.19.174,825
4.19.021,959
4.18.3396,899
4.18.26,805,498
4.18.11,189,802
4.18.033,974
4.17.3868,085
5.0.0-beta.113,597
4.17.2343,048
5.0.0-alpha.83,421
4.17.12,395,161
4.17.014,568
5.0.0-alpha.7477
4.16.4367,085
4.16.3109,765
4.16.265,404
4.16.14,537
4.16.06,974
5.0.0-alpha.6206
4.15.57,989
4.15.49,885
4.15.39,164
5.0.0-alpha.5204
4.15.27,135
4.15.1250
5.0.0-alpha.4178
4.15.0842
5.0.0-alpha.3176
4.14.16,963
4.14.010,230
4.13.425,694
4.13.34,819
4.13.2289
3.21.2121,293
5.0.0-alpha.2374
4.13.1634
3.21.113
4.13.01,087
3.21.015
4.12.42,244
3.20.320
4.12.3480
3.20.233
4.12.21,212
4.12.1295
3.20.116
4.12.0233
3.20.014
4.11.21,744
3.19.222
4.11.1311
3.19.182
4.11.0315
4.10.81,266
3.19.09
4.10.7295
4.10.6196
3.18.621
3.18.511
4.10.5280
4.10.4365
4.10.3247
3.18.418
4.10.2375
3.18.394
5.0.0-alpha.1203
4.10.1331
3.18.210
4.10.0275
3.18.118
3.18.012
4.9.81,394
3.17.820
4.9.7289
4.9.6215
3.17.79
3.17.610
4.9.5229
3.17.512
4.9.4186
3.17.414
4.9.3230
3.17.311
4.9.2210
4.9.1274
3.17.227
4.9.0223
3.17.19
3.17.011
4.8.8806
3.16.1017
4.8.7146
3.16.976
4.8.6189
3.16.811
4.8.5218
3.16.710
4.8.4151
3.16.69
3.16.59
4.8.3204
3.16.410
3.16.310
4.8.2214
3.16.211
4.8.1198
3.16.110
4.8.0220
3.16.043
4.7.4244
3.15.318
4.7.3212
4.7.2264
3.15.293
4.7.1211
3.15.111
4.7.0188
3.15.010
4.6.19,622
4.6.0444
3.14.018
4.5.1385
4.5.0301
3.13.025
4.4.5278
3.12.131
3.12.025
4.4.4126
3.11.061
4.4.3152
3.10.526
4.4.2151
3.10.417
3.10.316
3.10.210
3.10.114
3.10.010
4.4.1209
4.4.0145
3.9.022
4.3.2442
3.8.130
4.3.1143
4.3.01,415
3.8.012
3.7.014
4.2.02,318
3.6.022
4.1.2508
3.5.31,377
4.1.1144
4.1.0459
3.5.211
4.0.04,017
3.5.1422
4.0.0-rc430
4.0.0-rc323
3.5.0495
4.0.0-rc217
4.0.0-rc155
3.4.88,082
3.4.71,813
3.4.665
3.4.522
3.4.4183
3.4.3186
3.4.2102
3.4.112
3.4.03,104
3.3.814,774
3.3.713
3.0.0-rc10
3.0.0-beta10
3.0.0-beta70
2.0.0-beta30
2.0.0-rc30
3.0.0-rc30
1.0.0-rc40
3.0.0-alpha20
3.0.0-alpha30
3.0.0-beta30
3.0.0-rc40
3.0.0-rc50
2.0.0-beta20
3.0.0-beta60
2.0.0-rc0
3.0.0-alpha40
3.0.0-alpha10
1.0.0-beta0
1.0.0-rc30
1.0.0-beta20
2.0.0-rc20
1.0.0-rc0
3.0.0-rc20
3.0.0-beta20
3.0.0-alpha50
2.0.0-beta0
1.0.0-rc20
3.0.0-beta40
3.3.616
3.3.514
3.3.4595
3.3.315
3.3.212
3.3.167
3.3.014
3.2.61,814
3.2.51,457
3.2.4222
3.2.312
3.2.212
3.2.115
3.2.023
3.1.21,370
3.1.129
3.1.0230
3.0.61,246
3.0.518
3.0.453
3.0.381
3.0.215
3.0.152
3.0.0289

Package Sidebar

Install

npm i express

Weekly Downloads

27,334,693

Version

4.21.1

License

MIT

Unpacked Size

221 kB

Total Files

16

Last publish

Collaborators

  • wesleytodd
  • dougwilson
  • linusu
  • sheplu
  • blakeembrey
  • ulisesgascon
  • mikeal