npm: favor 'package' over 'module' (#10924)

As I understand the documentation, 'module' is more specific:
https://docs.npmjs.com/about-packages-and-modules

Note that the 'package' term is used in CLI help:

	$ npm install --help
	Install a package

	Usage:
	npm install [<package-spec> ...]
pull/23/head
Nicolas Kosinski 2023-10-11 09:33:22 +02:00 committed by GitHub
parent 67de197e7b
commit fcab942a24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -14,24 +14,24 @@
- Download a specific version of a package and add it to the list of dependencies in `package.json`:
`npm install {{module_name}}@{{version}}`
`npm install {{package_name}}@{{version}}`
- Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
`npm install {{module_name}} --save-dev`
`npm install {{package_name}} --save-dev`
- Download the latest version of a package and install it globally:
`npm install --global {{module_name}}`
`npm install --global {{package_name}}`
- Uninstall a package and remove it from the list of dependencies in `package.json`:
`npm uninstall {{module_name}}`
`npm uninstall {{package_name}}`
- Print a tree of locally installed dependencies:
`npm list`
- List top-level globally installed modules:
- List top-level globally installed packages:
`npm list --global --depth={{0}}`