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.110,084,992latest
5.0.183,066next

Version History

VersionDownloads (Last 7 Days)Published
5.0.183,066
4.21.110,084,992
4.21.03,415,014
5.0.025,971
4.20.0845,481
5.0.0-beta.313,201
4.19.25,945,195
5.0.0-beta.2116
4.19.178,381
4.19.021,840
4.18.3349,755
4.18.218,117,676
4.18.15,128,068
4.18.0134,227
4.17.32,419,094
5.0.0-beta.130,335
4.17.21,311,935
5.0.0-alpha.816,804
4.17.115,571,318
4.17.041,527
5.0.0-alpha.72,013
4.16.41,152,720
4.16.3535,714
4.16.2245,418
4.16.118,761
4.16.027,656
5.0.0-alpha.6333
4.15.569,342
4.15.423,685
4.15.343,246
5.0.0-alpha.5307
4.15.222,892
4.15.1737
5.0.0-alpha.4222
4.15.01,546
5.0.0-alpha.3201
4.14.119,629
4.14.033,885
4.13.481,676
4.13.310,313
4.13.2637
3.21.2186,318
5.0.0-alpha.2684
4.13.11,706
3.21.1530
4.13.01,989
3.21.0453
4.12.48,657
3.20.3493
4.12.33,514
3.20.2497
4.12.25,095
4.12.1725
3.20.1455
4.12.0658
3.20.0443
4.11.26,189
3.19.2464
4.11.11,167
3.19.1571
4.11.0736
4.10.82,908
3.19.0465
4.10.7597
4.10.6595
3.18.6643
3.18.5451
4.10.5599
4.10.4725
4.10.3564
3.18.4502
4.10.225,471
3.18.3552
5.0.0-alpha.1240
4.10.11,384
3.18.2445
4.10.0568
3.18.18,230
3.18.0442
4.9.83,793
3.17.8516
4.9.7732
4.9.6587
3.17.7448
3.17.6451
4.9.5627
3.17.5445
4.9.4635
3.17.4448
4.9.3565
3.17.3450
4.9.2558
4.9.1560
3.17.21,572
4.9.0579
3.17.1447
3.17.0447
4.8.81,544
3.16.104,338
4.8.7614
3.16.9546
4.8.6515
3.16.8449
4.8.5607
3.16.7463
4.8.4506
3.16.6442
3.16.5448
4.8.3498
3.16.4446
3.16.3444
4.8.2532
3.16.2444
4.8.1508
3.16.1450
4.8.0785
3.16.0557
4.7.4765
3.15.3481
4.7.3613
4.7.2594
3.15.2516
4.7.1570
3.15.1462
4.7.0501
3.15.0445
4.6.117,502
4.6.0726
3.14.0476
4.5.11,380
4.5.0531
3.13.0467
4.4.51,078
3.12.1463
3.12.0508
4.4.4643
3.11.02,445
4.4.3554
3.10.5607
4.4.2509
3.10.4448
3.10.3442
3.10.2446
3.10.1448
3.10.0450
4.4.1525
4.4.0507
3.9.0461
4.3.21,666
3.8.1598
4.3.1528
4.3.02,538
3.8.0444
3.7.0455
4.2.06,536
3.6.0468
4.1.21,056
3.5.33,266
4.1.1754
4.1.01,598
3.5.2495
4.0.08,802
3.5.11,720
4.0.0-rc4199
4.0.0-rc3197
3.5.01,544
4.0.0-rc2207
4.0.0-rc1203
3.4.876,965
3.4.7846
3.4.6598
3.4.5727
3.4.41,075
3.4.31,172
3.4.2556
3.4.1553
3.4.05,962
3.3.87,916
3.3.7509
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.6509
3.3.5557
3.3.42,644
3.3.3526
3.3.2507
3.3.1591
3.3.0523
3.2.64,996
3.2.55,320
3.2.4877
3.2.3507
3.2.2508
3.2.1512
3.2.0537
3.1.26,522
3.1.1552
3.1.02,805
3.0.66,323
3.0.5557
3.0.4580
3.0.3899
3.0.2503
3.0.1524
3.0.01,008

Package Sidebar

Install

npm i express

Weekly Downloads

32,486,005

Version

4.21.1

License

MIT

Unpacked Size

221 kB

Total Files

16

Last publish

Collaborators

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