Formatted all pages according to guidelines.

This commit is contained in:
Ruben Vereecken
2016-01-07 18:31:27 +01:00
parent efa4cbd4de
commit 066582e8ea
284 changed files with 1338 additions and 1364 deletions

View File

@@ -2,30 +2,30 @@
> Node package manager, to manage Node.js projects and install module dependencies.
- Create a new project in the current folder
- Create a new project in the current folder:
`npm init`
- Download all dependencies referenced in package.json
- Download all dependencies referenced in package.json:
`npm install`
- Download and install a module globally
- Download and install a module globally:
`npm install -g {{module_name}}`
- Download a given dependency, and add it to the package.json
- Download a given dependency, and add it to the package.json:
`npm install {{module_name}}@{{version}} --save`
- Set the version of the current project
- Set the version of the current project:
`npm version {{1.2.3}}`
- Publish the current project
- Publish the current project:
`npm publish`
- Cleanup packages (removes packages which are installed but are not listed in `package.json`)
- Cleanup packages (removes packages which are installed but are not listed in `package.json`):
`npm prune`