Skip to content

Commit f947dbd

Browse files
authored
Revert "docs: update readme (expressjs#5994)"
This reverts commit 508c740.
1 parent e4a61bd commit f947dbd

File tree

1 file changed

+38
-42
lines changed

1 file changed

+38
-42
lines changed

Readme.md

+38-42
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[![Express Logo](https://i.cloudup.com/zfY6lL7eFa-3000x3000.png)](https://expressjs.com/)
1+
[![Express Logo](https://i.cloudup.com/zfY6lL7eFa-3000x3000.png)](http://expressjs.com/)
22

3-
**Fast, unopinionated, minimalist web framework for [Node.js](https://nodejs.org).**
3+
**Fast, unopinionated, minimalist web framework for [Node.js](http://nodejs.org).**
44

55
**This project has a [Code of Conduct][].**
66

@@ -26,11 +26,10 @@
2626

2727

2828
```js
29-
import express from 'express'
30-
29+
const express = require('express')
3130
const app = express()
3231

33-
app.get('/', (req, res) => {
32+
app.get('/', function (req, res) {
3433
res.send('Hello World')
3534
})
3635

@@ -43,19 +42,19 @@ This is a [Node.js](https://nodejs.org/en/) module available through the
4342
[npm registry](https://www.npmjs.com/).
4443

4544
Before installing, [download and install Node.js](https://nodejs.org/en/download/).
46-
Node.js 18 or higher is required.
45+
Node.js 0.10 or higher is required.
4746

4847
If this is a brand new project, make sure to create a `package.json` first with
4948
the [`npm init` command](https://docs.npmjs.com/creating-a-package-json-file).
5049

5150
Installation is done using the
5251
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
5352

54-
```bash
55-
npm install express
53+
```console
54+
$ npm install express
5655
```
5756

58-
Follow [our installing guide](https://expressjs.com/en/starter/installing.html)
57+
Follow [our installing guide](http://expressjs.com/en/starter/installing.html)
5958
for more information.
6059

6160
## Features
@@ -70,38 +69,41 @@ for more information.
7069

7170
## Docs & Community
7271

73-
* [Website and Documentation](https://expressjs.com/) - [[website repo](https://github.com/expressjs/expressjs.com)]
72+
* [Website and Documentation](http://expressjs.com/) - [[website repo](https://github.com/expressjs/expressjs.com)]
73+
* [#express](https://web.libera.chat/#express) on [Libera Chat](https://libera.chat) IRC
7474
* [GitHub Organization](https://github.com/expressjs) for Official Middleware & Modules
75-
* [Github Discussions](https://github.com/expressjs/discussions) for discussion on the development and usage of Express
75+
* Visit the [Wiki](https://github.com/expressjs/express/wiki)
76+
* [Google Group](https://groups.google.com/group/express-js) for discussion
77+
* [Gitter](https://gitter.im/expressjs/express) for support and discussion
7678

77-
**PROTIP** Be sure to read the [migration guide to v5](https://expressjs.com/en/guide/migrating-5)
79+
**PROTIP** Be sure to read [Migrating from 3.x to 4.x](https://github.com/expressjs/express/wiki/Migrating-from-3.x-to-4.x) as well as [New features in 4.x](https://github.com/expressjs/express/wiki/New-features-in-4.x).
7880

7981
## Quick Start
8082

8183
The quickest way to get started with express is to utilize the executable [`express(1)`](https://github.com/expressjs/generator) to generate an application as shown below:
8284

8385
Install the executable. The executable's major version will match Express's:
8486

85-
```bash
86-
npm install -g express-generator@4
87+
```console
88+
$ npm install -g express-generator@4
8789
```
8890

8991
Create the app:
9092

91-
```bash
92-
express /tmp/foo && cd /tmp/foo
93+
```console
94+
$ express /tmp/foo && cd /tmp/foo
9395
```
9496

9597
Install dependencies:
9698

97-
```bash
98-
npm install
99+
```console
100+
$ npm install
99101
```
100102

101103
Start the server:
102104

103-
```bash
104-
npm start
105+
```console
106+
$ npm start
105107
```
106108

107109
View the website at: http://localhost:3000
@@ -113,32 +115,29 @@ npm start
113115
HTTP APIs.
114116

115117
Express does not force you to use any specific ORM or template engine. With support for over
116-
14 template engines via [@ladjs/consolidate](https://github.com/ladjs/consolidate),
118+
14 template engines via [Consolidate.js](https://github.com/tj/consolidate.js),
117119
you can quickly craft your perfect framework.
118120

119121
## Examples
120122

121-
To view the examples, clone the Express repository:
122-
123-
```bash
124-
git clone https://github.com/expressjs/express.git --depth 1 && cd express
125-
```
126-
127-
Then install the dependencies:
123+
To view the examples, clone the Express repo and install the dependencies:
128124

129-
```bash
130-
npm install
125+
```console
126+
$ git clone https://github.com/expressjs/express.git --depth 1
127+
$ cd express
128+
$ npm install
131129
```
132130

133131
Then run whichever example you want:
134132

135-
```bash
136-
node examples/content-negotiation
133+
```console
134+
$ node examples/content-negotiation
137135
```
138136

139137
## Contributing
140138

141139
[![Linux Build][github-actions-ci-image]][github-actions-ci-url]
140+
[![Windows Build][appveyor-image]][appveyor-url]
142141
[![Test Coverage][coveralls-image]][coveralls-url]
143142

144143
The Express.js project welcomes all constructive contributions. Contributions take many forms,
@@ -153,16 +152,11 @@ If you discover a security vulnerability in Express, please see [Security Polici
153152

154153
### Running Tests
155154

156-
To run the test suite, first install the dependencies:
157-
158-
```bash
159-
npm install
160-
```
161-
162-
Then run `npm test`:
155+
To run the test suite, first install the dependencies, then run `npm test`:
163156

164-
```bash
165-
npm test
157+
```console
158+
$ npm install
159+
$ npm test
166160
```
167161

168162
## People
@@ -251,9 +245,11 @@ The original author of Express is [TJ Holowaychuk](https://github.com/tj)
251245

252246
[MIT](LICENSE)
253247

248+
[appveyor-image]: https://badgen.net/appveyor/ci/dougwilson/express/master?label=windows
249+
[appveyor-url]: https://ci.appveyor.com/project/dougwilson/express
254250
[coveralls-image]: https://badgen.net/coveralls/c/github/expressjs/express/master
255251
[coveralls-url]: https://coveralls.io/r/expressjs/express?branch=master
256-
[github-actions-ci-image]: https://badgen.net/github/checks/expressjs/express/master?label=CI
252+
[github-actions-ci-image]: https://badgen.net/github/checks/expressjs/express/master?label=linux
257253
[github-actions-ci-url]: https://github.com/expressjs/express/actions/workflows/ci.yml
258254
[npm-downloads-image]: https://badgen.net/npm/dm/express
259255
[npm-downloads-url]: https://npmcharts.com/compare/express?minimal=true

0 commit comments

Comments
 (0)