express
Fast, unopinionated, minimalist web framework
Last updated 6 days ago by dougwilson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install express 
SYNC missed versions from official npm registry.

Express Logo

Fast, unopinionated, minimalist web framework for node.

NPM Version NPM Downloads Linux Build Windows Build Test Coverage

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.

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.

Security Issues

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

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, web sites, 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 git://github.com/expressjs/express.git --depth 1
$ cd express
$ npm install

Then run whichever example you want:

$ node examples/content-negotiation

Tests

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

$ npm install
$ npm test

Contributing

Contributing Guide

People

The original author of Express is TJ Holowaychuk

The current lead maintainer is Douglas Christopher Wilson

List of all contributors

License

MIT

Current Tags

  • 4.17.0                                ...           latest (6 days ago)
  • 5.0.0-alpha.7                                ...           next (7 months ago)

262 Versions

  • 4.17.0                                ...           6 days ago
  • 5.0.0-alpha.7                                ...           7 months ago
  • 4.16.4                                ...           7 months ago
  • 4.16.3                                ...           a year ago
  • 4.16.2                                ...           2 years ago
  • 4.16.1                                ...           2 years ago
  • 4.16.0                                ...           2 years ago
  • 5.0.0-alpha.6                                ...           2 years ago
  • 4.15.5                                ...           2 years ago
  • 4.15.4                                ...           2 years ago
  • 4.15.3                                ...           2 years ago
  • 5.0.0-alpha.5                                ...           2 years ago
  • 4.15.2                                ...           2 years ago
  • 4.15.1                                ...           2 years ago
  • 5.0.0-alpha.4                                ...           2 years ago
  • 4.15.0                                ...           2 years ago
  • 5.0.0-alpha.3                                ...           2 years ago
  • 4.14.1                                ...           2 years ago
  • 4.14.0                                ...           3 years ago
  • 4.13.4                                ...           3 years ago
  • 4.13.3                                ...           4 years ago
  • 4.13.2                                ...           4 years ago
  • 3.21.2                                ...           4 years ago
  • 5.0.0-alpha.2                                ...           4 years ago
  • 4.13.1                                ...           4 years ago
  • 3.21.1                                ...           4 years ago
  • 4.13.0                                ...           4 years ago
  • 3.21.0                                ...           4 years ago
  • 4.12.4                                ...           4 years ago
  • 3.20.3                                ...           4 years ago
  • 4.12.3                                ...           4 years ago
  • 3.20.2                                ...           4 years ago
  • 4.12.2                                ...           4 years ago
  • 4.12.1                                ...           4 years ago
  • 3.20.1                                ...           4 years ago
  • 4.12.0                                ...           4 years ago
  • 3.20.0                                ...           4 years ago
  • 4.11.2                                ...           4 years ago
  • 3.19.2                                ...           4 years ago
  • 4.11.1                                ...           4 years ago
  • 3.19.1                                ...           4 years ago
  • 4.11.0                                ...           4 years ago
  • 4.10.8                                ...           4 years ago
  • 3.19.0                                ...           4 years ago
  • 4.10.7                                ...           4 years ago
  • 4.10.6                                ...           4 years ago
  • 3.18.6                                ...           4 years ago
  • 3.18.5                                ...           4 years ago
  • 4.10.5                                ...           4 years ago
  • 4.10.4                                ...           4 years ago
  • 4.10.3                                ...           4 years ago
  • 3.18.4                                ...           4 years ago
  • 4.10.2                                ...           5 years ago
  • 3.18.3                                ...           5 years ago
  • 5.0.0-alpha.1                                ...           5 years ago
  • 4.10.1                                ...           5 years ago
  • 3.18.2                                ...           5 years ago
  • 4.10.0                                ...           5 years ago
  • 3.18.1                                ...           5 years ago
  • 3.18.0                                ...           5 years ago
  • 4.9.8                                ...           5 years ago
  • 3.17.8                                ...           5 years ago
  • 4.9.7                                ...           5 years ago
  • 4.9.6                                ...           5 years ago
  • 3.17.7                                ...           5 years ago
  • 3.17.6                                ...           5 years ago
  • 4.9.5                                ...           5 years ago
  • 3.17.5                                ...           5 years ago
  • 4.9.4                                ...           5 years ago
  • 3.17.4                                ...           5 years ago
  • 4.9.3                                ...           5 years ago
  • 3.17.3                                ...           5 years ago
  • 4.9.2                                ...           5 years ago
  • 4.9.1                                ...           5 years ago
  • 3.17.2                                ...           5 years ago
  • 4.9.0                                ...           5 years ago
  • 3.17.1                                ...           5 years ago
  • 3.17.0                                ...           5 years ago
  • 4.8.8                                ...           5 years ago
  • 3.16.10                                ...           5 years ago
  • 4.8.7                                ...           5 years ago
  • 3.16.9                                ...           5 years ago
  • 4.8.6                                ...           5 years ago
  • 3.16.8                                ...           5 years ago
  • 4.8.5                                ...           5 years ago
  • 3.16.7                                ...           5 years ago
  • 4.8.4                                ...           5 years ago
  • 3.16.6                                ...           5 years ago
  • 3.16.5                                ...           5 years ago
  • 4.8.3                                ...           5 years ago
  • 3.16.4                                ...           5 years ago
  • 3.16.3                                ...           5 years ago
  • 4.8.2                                ...           5 years ago
  • 3.16.2                                ...           5 years ago
  • 4.8.1                                ...           5 years ago
  • 3.16.1                                ...           5 years ago
  • 4.8.0                                ...           5 years ago
  • 3.16.0                                ...           5 years ago
  • 4.7.4                                ...           5 years ago
  • 3.15.3                                ...           5 years ago
  • 4.7.3                                ...           5 years ago
  • 4.7.2                                ...           5 years ago
  • 3.15.2                                ...           5 years ago
  • 4.7.1                                ...           5 years ago
  • 3.15.1                                ...           5 years ago
  • 4.7.0                                ...           5 years ago
  • 3.15.0                                ...           5 years ago
  • 4.6.1                                ...           5 years ago
  • 4.6.0                                ...           5 years ago
  • 3.14.0                                ...           5 years ago
  • 4.5.1                                ...           5 years ago
  • 4.5.0                                ...           5 years ago
  • 3.13.0                                ...           5 years ago
  • 4.4.5                                ...           5 years ago
  • 3.12.1                                ...           5 years ago
  • 3.12.0                                ...           5 years ago
  • 4.4.4                                ...           5 years ago
  • 3.11.0                                ...           5 years ago
  • 4.4.3                                ...           5 years ago
  • 3.10.5                                ...           5 years ago
  • 4.4.2                                ...           5 years ago
  • 3.10.4                                ...           5 years ago
  • 3.10.3                                ...           5 years ago
  • 3.10.2                                ...           5 years ago
  • 3.10.1                                ...           5 years ago
  • 3.10.0                                ...           5 years ago
  • 4.4.1                                ...           5 years ago
  • 4.4.0                                ...           5 years ago
  • 3.9.0                                ...           5 years ago
  • 4.3.2                                ...           5 years ago
  • 3.8.1                                ...           5 years ago
  • 4.3.1                                ...           5 years ago
  • 4.3.0                                ...           5 years ago
  • 3.8.0                                ...           5 years ago
  • 3.7.0                                ...           5 years ago
  • 4.2.0                                ...           5 years ago
  • 3.6.0                                ...           5 years ago
  • 4.1.2                                ...           5 years ago
  • 3.5.3                                ...           5 years ago
  • 4.1.1                                ...           5 years ago
  • 4.1.0                                ...           5 years ago
  • 3.5.2                                ...           5 years ago
  • 4.0.0                                ...           5 years ago
  • 3.5.1                                ...           5 years ago
  • 4.0.0-rc4                                ...           5 years ago
  • 4.0.0-rc3                                ...           5 years ago
  • 3.5.0                                ...           5 years ago
  • 4.0.0-rc2                                ...           5 years ago
  • 4.0.0-rc1                                ...           5 years ago
  • 3.4.8                                ...           5 years ago
  • 3.4.7                                ...           5 years ago
  • 3.4.6                                ...           5 years ago
  • 3.4.5                                ...           5 years ago
  • 3.4.4                                ...           6 years ago
  • 3.4.3                                ...           6 years ago
  • 3.4.2                                ...           6 years ago
  • 3.4.1                                ...           6 years ago
  • 3.4.0                                ...           6 years ago
  • 3.3.8                                ...           6 years ago
  • 3.3.7                                ...           6 years ago
  • 3.0.0-rc4                                ...           6 years ago
  • 3.0.0-rc3                                ...           6 years ago
  • 3.0.0-rc2                                ...           6 years ago
  • 3.0.0-rc1                                ...           6 years ago
  • 3.0.0-beta7                                ...           6 years ago
  • 3.0.0-beta6                                ...           6 years ago
  • 3.0.0-beta4                                ...           6 years ago
  • 3.0.0-beta3                                ...           6 years ago
  • 3.0.0-beta2                                ...           6 years ago
  • 3.0.0-beta1                                ...           6 years ago
  • 3.0.0-alpha5                                ...           6 years ago
  • 3.0.0-alpha4                                ...           6 years ago
  • 3.0.0-alpha3                                ...           6 years ago
  • 3.0.0-alpha2                                ...           6 years ago
  • 3.0.0-alpha1                                ...           6 years ago
  • 2.0.0-rc3                                ...           6 years ago
  • 2.0.0-rc2                                ...           6 years ago
  • 2.0.0-rc                                ...           6 years ago
  • 2.0.0-beta3                                ...           6 years ago
  • 2.0.0-beta2                                ...           6 years ago
  • 2.0.0-beta                                ...           6 years ago
  • 1.0.0-rc4                                ...           6 years ago
  • 1.0.0-rc3                                ...           6 years ago
  • 1.0.0-rc2                                ...           6 years ago
  • 1.0.0-rc                                ...           6 years ago
  • 1.0.0-beta2                                ...           6 years ago
  • 1.0.0-beta                                ...           6 years ago
  • 3.0.0-rc5                                ...           6 years ago
  • 3.3.6                                ...           6 years ago
  • 3.3.5                                ...           6 years ago
  • 3.3.4                                ...           6 years ago
  • 3.3.3                                ...           6 years ago
  • 3.3.2                                ...           6 years ago
  • 3.3.1                                ...           6 years ago
  • 3.3.0                                ...           6 years ago
  • 3.2.6                                ...           6 years ago
  • 3.2.5                                ...           6 years ago
  • 3.2.4                                ...           6 years ago
  • 3.2.3                                ...           6 years ago
  • 3.2.2                                ...           6 years ago
  • 3.2.1                                ...           6 years ago
  • 3.2.0                                ...           6 years ago
  • 3.1.2                                ...           6 years ago
  • 3.1.1                                ...           6 years ago
  • 3.1.0                                ...           6 years ago
  • 3.0.6                                ...           6 years ago
  • 3.0.5                                ...           6 years ago
  • 3.0.4                                ...           6 years ago
  • 3.0.3                                ...           7 years ago
  • 3.0.2                                ...           7 years ago
  • 3.0.1                                ...           7 years ago
  • 3.0.0                                ...           7 years ago
  • 2.5.11 [deprecated]           ...           7 years ago
  • 2.5.10 [deprecated]           ...           7 years ago
  • 2.5.9 [deprecated]           ...           7 years ago
  • 2.5.8 [deprecated]           ...           7 years ago
  • 2.5.7 [deprecated]           ...           7 years ago
  • 2.5.6 [deprecated]           ...           7 years ago
  • 2.5.5 [deprecated]           ...           7 years ago
  • 2.5.4 [deprecated]           ...           7 years ago
  • 2.5.3 [deprecated]           ...           7 years ago
  • 2.5.2 [deprecated]           ...           7 years ago
  • 2.5.1 [deprecated]           ...           8 years ago
  • 2.5.0 [deprecated]           ...           8 years ago
  • 2.4.7 [deprecated]           ...           8 years ago
  • 2.4.6 [deprecated]           ...           8 years ago
  • 2.4.5 [deprecated]           ...           8 years ago
  • 2.4.4 [deprecated]           ...           8 years ago
  • 2.4.3 [deprecated]           ...           8 years ago
  • 2.4.2 [deprecated]           ...           8 years ago
  • 2.4.1 [deprecated]           ...           8 years ago
  • 2.4.0 [deprecated]           ...           8 years ago
  • 2.3.12 [deprecated]           ...           8 years ago
  • 2.3.11 [deprecated]           ...           8 years ago
  • 2.3.10 [deprecated]           ...           8 years ago
  • 2.3.9 [deprecated]           ...           8 years ago
  • 2.3.8 [deprecated]           ...           8 years ago
  • 2.3.7 [deprecated]           ...           8 years ago
  • 2.3.6 [deprecated]           ...           8 years ago
  • 2.3.5 [deprecated]           ...           8 years ago
  • 2.3.4 [deprecated]           ...           8 years ago
  • 2.3.3 [deprecated]           ...           8 years ago
  • 2.3.2 [deprecated]           ...           8 years ago
  • 2.3.1 [deprecated]           ...           8 years ago
  • 2.3.0 [deprecated]           ...           8 years ago
  • 2.2.2 [deprecated]           ...           8 years ago
  • 2.2.1 [deprecated]           ...           8 years ago
  • 2.2.0 [deprecated]           ...           8 years ago
  • 2.1.1 [deprecated]           ...           8 years ago
  • 2.1.0 [deprecated]           ...           8 years ago
  • 2.0.0 [deprecated]           ...           8 years ago
  • 1.0.8 [deprecated]           ...           8 years ago
  • 1.0.7 [deprecated]           ...           8 years ago
  • 1.0.6 [deprecated]           ...           8 years ago
  • 1.0.5 [deprecated]           ...           8 years ago
  • 1.0.4 [deprecated]           ...           8 years ago
  • 1.0.3 [deprecated]           ...           8 years ago
  • 1.0.2 [deprecated]           ...           8 years ago
  • 1.0.1 [deprecated]           ...           8 years ago
  • 1.0.0 [deprecated]           ...           8 years ago
  • 0.14.1 [deprecated]           ...           8 years ago
  • 0.14.0 [deprecated]           ...           8 years ago
Downloads
Today 266
This Week 99,006
This Month 400,389
Last Day 31,015
Last Week 144,733
Last Month 501,850
Dependencies (30)
Dev Dependencies (18)
Dependents (34197)