Go to file
Jayx239 b4e3442f9a
Some checks failed
ci / test (Node.js 0.10, 0.10, mocha@3.5.3 nyc@10.3.2 supertest@2.0.0) (push) Has been cancelled
ci / test (Node.js 0.12, 0.12, mocha@3.5.3 nyc@10.3.2 supertest@2.0.0) (push) Has been cancelled
ci / test (Node.js 10.x, 10.24, mocha@8.4.0) (push) Has been cancelled
ci / test (Node.js 11.x, 11.15, mocha@8.4.0) (push) Has been cancelled
ci / test (Node.js 12.x, 12.22, mocha@9.2.2) (push) Has been cancelled
ci / test (Node.js 13.x, 13.14, mocha@9.2.2) (push) Has been cancelled
ci / test (Node.js 14.x, 14.20) (push) Has been cancelled
ci / test (Node.js 15.x, 15.14) (push) Has been cancelled
ci / test (Node.js 16.x, 16.20) (push) Has been cancelled
ci / test (Node.js 17.x, 17.9) (push) Has been cancelled
ci / test (Node.js 18.x, 18.19) (push) Has been cancelled
ci / test (Node.js 19.x, 19.9) (push) Has been cancelled
ci / test (Node.js 20.x, 20.11) (push) Has been cancelled
ci / test (Node.js 21.x, 21.7) (push) Has been cancelled
ci / test (Node.js 22.x, 22.2) (push) Has been cancelled
ci / test (Node.js 4.x, 4.9, mocha@5.2.0 nyc@11.9.0 supertest@3.4.2) (push) Has been cancelled
ci / test (Node.js 5.x, 5.12, mocha@5.2.0 nyc@11.9.0 supertest@3.4.2) (push) Has been cancelled
ci / test (Node.js 6.x, 6.17, mocha@6.2.2 nyc@14.1.1 supertest@3.4.2) (push) Has been cancelled
ci / test (Node.js 7.x, 7.10, mocha@6.2.2 nyc@14.1.1 supertest@6.1.6) (push) Has been cancelled
ci / test (Node.js 8.x, 8.17, mocha@7.2.0 nyc@14.1.1) (push) Has been cancelled
ci / test (Node.js 9.x, 9.11, mocha@7.2.0 nyc@14.1.1) (push) Has been cancelled
ci / test (io.js 1.x, 1.8, mocha@3.5.3 nyc@10.3.2 supertest@2.0.0) (push) Has been cancelled
ci / test (io.js 2.x, 2.5, mocha@3.5.3 nyc@10.3.2 supertest@2.0.0) (push) Has been cancelled
ci / test (io.js 3.x, 3.3, mocha@3.5.3 nyc@10.3.2 supertest@2.0.0) (push) Has been cancelled
ci / coverage (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Update to use private repo
Update to use @swizzy private repo.
2024-10-19 16:16:40 -04:00
.github/workflows skip QUERY tests for Node 21 only, still not supported (#5695) 2024-06-08 23:25:42 -04:00
benchmarks docs: add documentation for benchmarks 2024-02-19 12:04:49 -05:00
examples examples: improve view count in cookie-sessions 2024-02-19 16:47:26 -05:00
lib Update application and update unuse test 2024-06-16 18:36:26 -04:00
test Update application and update unuse test 2024-06-16 18:36:26 -04:00
.editorconfig build: Add .editorconfig 2017-03-19 16:46:37 -04:00
.eslintignore lint: add eslint rules that cover editorconfig 2017-08-05 23:37:39 -04:00
.eslintrc.yml build: eslint@4.19.1 2021-09-01 19:27:00 -04:00
.gitignore build: use nyc for test coverage 2022-02-07 23:08:12 -05:00
.npmrc bring back query tests for node 21 (#5690) 2024-06-05 17:25:58 -04:00
appveyor.yml add support Node.js@22 in the CI (#5627) 2024-05-04 18:15:53 -04:00
Charter.md docs: fix typo in casing of HTTP 2022-04-08 03:42:09 -04:00
Code-Of-Conduct.md docs: add Code of Conduct 2020-04-07 01:35:34 -04:00
Collaborator-Guide.md docs: fix typos in Collaborator Guide 2020-07-07 22:42:34 -04:00
Contributing.md docs: add @UlisesGascon as captain for cookie-parser (#5666) 2024-05-22 18:29:16 -04:00
History.md [v4] Deprecate res.clearCookie accepting options.maxAge and options.expires (#5672) 2024-06-07 19:48:48 -04:00
index.js perf: enable strict mode 2015-06-18 23:01:18 -04:00
LICENSE Merge tag '3.20.0' 2015-02-18 22:33:47 -05:00
package.json Update to use private repo 2024-10-19 16:16:40 -04:00
Readme-Guide.md docs: add guide for writing readmes 2017-02-20 18:21:38 -05:00
Readme.md 📝 update people, add ctcpip to TC (#5683) 2024-06-10 17:19:11 -04:00
Release-Process.md Update Release-Process.md 2024-03-27 09:57:09 -05:00
Security.md docs: update reference to the threat model (#5590) 2024-04-10 18:53:52 +02:00
Triager-Guide.md docs: fix typos in Triager Guide 2020-07-07 22:42:01 -04:00

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

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