express
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
accepts | 1.3.8 | 5.28 kB | MIT | prod | |
array-flatten | 1.1.1 | 1.95 kB | MIT | prod | |
content-disposition | 0.5.2 | 6.47 kB | MIT | prod | |
content-type | 1.0.5 | 3.82 kB | MIT | prod | |
cookie-signature | 1.0.6 | 2.06 kB | MIT | prod | |
cookie | 0.3.1 | 5.83 kB | MIT | prod | |
debug | 2.2.0 | 10.05 kB | MIT | prod | 1 1 2 |
depd | 1.1.2 | 8.81 kB | MIT | prod | |
encodeurl | 1.0.2 | 3.18 kB | MIT | prod | |
escape-html | 1.0.3 | 1.87 kB | MIT | prod | |
etag | 1.7.0 | 3.89 kB | MIT | prod | |
finalhandler | 0.5.1 | 4.94 kB | MIT | prod | 1 1 2 |
fresh | 0.3.0 | 2.41 kB | MIT | prod | 1 |
merge-descriptors | 1.0.1 | 2.26 kB | MIT | prod | |
methods | 1.1.2 | 2.42 kB | MIT | prod | |
on-finished | 2.3.0 | 4.45 kB | MIT | prod | |
parseurl | 1.3.3 | 3.86 kB | MIT | prod | |
path-to-regexp | 0.1.7 | 3.19 kB | MIT | prod | |
proxy-addr | 1.1.5 | 5.02 kB | MIT | prod | |
qs | 6.2.0 | 14.35 kB | BSD-3-Clause | prod | 2 |
range-parser | 1.2.1 | 3.52 kB | MIT | prod | |
send | 0.14.2 | 12.01 kB | MIT | prod | 1 3 2 |
serve-static | 1.11.2 | 7.2 kB | MIT | prod | 1 3 2 |
type-is | 1.6.18 | 5.73 kB | MIT | prod | |
utils-merge | 1.0.0 | 1.65 kB | MIT | prod | |
vary | 1.1.2 | 3.68 kB | MIT | prod |
Express.js is a fast, unopinionated, and minimalist web development framework for Node.js. It's renowned for its robust routing and focus on high performance. Express doesn't enforce a specific ORM or template engine, making it an excellent solution for creating single page applications, websites, hybrids, or public HTTP APIs. This flexibility is further enhanced by support for over 14 template engines via Consolidate.js. In addition, Express provides a suite of HTTP utilities and middleware to help build scalable applications with ease.
To use Express.js, you'll first need to download and install Node.js versions of 0.10 or higher. You can install Express in your Node.js modules using npm with the npm install express
command.
Here's an example of how to create a basic Express application:
const express = require('express')
const app = express()
app.get('/', function (req, res) {
res.send('Hello World')
})
app.listen(3000)
This creates an Express application that listens on port 3000, and responds with 'Hello World' for requests to the root URL (/
) or route.
To quickly get started with Express, you could use the executable express(1)
to generate an application skeleton by using the command npm install -g express-generator@4
, create the app with express /tmp/foo && cd /tmp/foo
, install dependencies with npm install
and start the server with npm start
.
The official Express documentation, which includes a comprehensive guide to getting started, API references, and a variety of other resources, can be found on the Express.js website. The website repository is available on GitHub for those interested in contributing to the Express documentation. You could also engage with the Express community via Libera Chat IRC, Google Group or use Gitter for support and discussion.