Skip to content

Commit f2e734a

Browse files
committed
[Sabrina] Fix formatting
1 parent 56f41cc commit f2e734a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/javascript/node-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Their sources are on [Github](https://github.com/nodejs/node/tree/master/lib).
172172
The main (not all!) core modules are:
173173

174174
- [http](http://nodejs.org/api/http.html#http_http): HTTP clients and servers
175-
- [util]http://nodejs.org/api/util.html): Utilities
175+
- [util](http://nodejs.org/api/util.html): Utilities
176176
- [querystring](http://nodejs.org/api/querystring.html): Parses query-string formatted data
177177
- [url](http://nodejs.org/api/url.html): Parses URL data
178178
- [fs](http://nodejs.org/api/fs.html): Writing and reading files

docs/javascript/npm.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ See more examples of a `package.json` file in the [npm docs for creating a packa
6060
In the above example, notice that there are already two scripts in the `scripts` object. npm scripts are just JSON key-value pairs where the key is the name of the script (such as `start`) and the value contains the script you want to execute (such as `node index.js`).
6161

6262
```json
63-
"scripts": { "start": "node index.js", ...}
63+
"scripts": {
64+
"start": "node index.js",
65+
...
66+
}
6467
```
6568

6669
Being a popular npm script, it can be run like this:
@@ -72,7 +75,10 @@ npm start
7275
What if you have custom npm scripts such as `start:dev` like in the above example?
7376

7477
```json
75-
"scripts": {... "start:dev": "nodemon index.js" }
78+
"scripts": {
79+
...
80+
"start:dev": "nodemon index.js"
81+
}
7682
```
7783

7884
Now, npm start:dev would not work because it is a custom npm script. Custom npm scripts must be preceded by either `run-script` or `run` for them to be executed.

0 commit comments

Comments
 (0)