Top Qs
Timeline
Chat
Perspective
Express.js
JavaScript framework From Wikipedia, the free encyclopedia
Remove ads
Express.js, or simply Express, is a back end web application framework for Node.js, released as free and open-source software under the MIT License. It is designed for building web applications and APIs.[1] It has been called the de facto standard server framework for Node.js.[2]
The original author, TJ Holowaychuk, described it as a Sinatra-inspired server,[3] meaning that it is relatively minimal with many features available as plugins. Express is the back-end component of popular development stacks like the MEAN, MERN or MEVN stack, together with the MongoDB database software and a JavaScript front-end framework or library.[4]
Remove ads
History
Express.js was founded by TJ Holowaychuk. The initial versions were created in early 2010, and milestone version 1 was released later that year.[5]
In June 2014, rights to manage the project were acquired by StrongLoop.[6] StrongLoop was acquired by IBM in September 2015;[7] in January 2016, IBM announced that it would place Express.js under the stewardship of the Node.js Foundation incubator.[8]
In July 2014, work began towards milestone version 5. After ten years of development it was released in October 2024.[9]
Remove ads
Features
- Robust routing[10]
- HTTP helpers (redirection, caching, etc.)
- Asynchronous programming
- Long-term support of legacy versions[11]
Popularity
Express.js is used by Fox Sports, PayPal, Uber and IBM.[12]
Example
The following program will respond to HTTP GET requests with the text "Hi, your request has been received", and listen to the port the program is running on (in this case, port 2000).
// Importing the Express library.
const express = require('express');
// Initializing the app.
const app = express();
// Getting the path request and sending the response with text.
app.get('/', (req, res) => {
res.send('Hi, your request has been received');
});
// Listening on port 2000.
app.listen(2000, () => {
console.log('listening at http://localhost:2000');
});
Remove ads
See also
References
External links
Wikiwand - on
Seamless Wikipedia browsing. On steroids.
Remove ads