Express5.1.0
Fast, unopinionated, minimalist web framework for Node.jsNode.js的快速、无偏见、极简主义的web框架
$ npm install express --save
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => {
res.send('Hello World!')
})
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
-
[email protected]
: Now the Default on npm with LTS Timeline:现在使用LTS时间线在npm上默认Express 5.1.0 is now the default on npm, and we’re introducing an official LTS schedule for the v4 and v5 release lines.Express 5.1.0现在是npm的默认版本,我们正在为v4和v5版本线引入官方的LTS时间表。Check out our latest blog for more information.查看我们最新的博客以获取更多信息。