npm-{install-test, link, explain}: add option placeholders (#19910)

This commit is contained in:
Managor
2025-12-11 05:27:49 +02:00
committed by GitHub
parent b962430312
commit f207de8a04
3 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -5,16 +5,16 @@
- Explain why a specific package is installed:
`npm explain {{package_name}}`
`npm {{[why|explain]}} {{package_name}}`
- Show explanation in JSON format:
`npm explain {{package_name}} --json`
`npm {{[why|explain]}} {{package_name}} --json`
- Include peer dependencies in the explanation:
`npm explain {{package_name}} --include peer`
`npm {{[why|explain]}} {{package_name}} --include peer`
- Limit explanation depth to 2 levels deep:
`npm explain {{package_name}} --depth 2`
`npm {{[why|explain]}} {{package_name}} --depth 2`
+4 -4
View File
@@ -6,16 +6,16 @@
- Install all dependencies and then run tests:
`npm install-test`
`npm {{[it|install-test]}}`
- Install a specific package and then run tests:
`npm install-test {{package_name}}`
`npm {{[it|install-test]}} {{package_name}}`
- Install a package and save it as a dependency before running tests:
`npm install-test {{package_name}} {{[-S|--save]}}`
`npm {{[it|install-test]}} {{package_name}} {{[-S|--save]}}`
- Install dependencies globally and then run tests:
`npm install-test {{[-g|--global]}}`
`npm {{[it|install-test]}} {{[-g|--global]}}`
+3 -3
View File
@@ -5,12 +5,12 @@
- Symlink the current package globally:
`npm link`
`npm {{[ln|link]}}`
- Link a globally linked package into another project's `node_modules`:
`npm link {{package_name}}`
`npm {{[ln|link]}} {{package_name}}`
- Unlink a package from the current project:
`npm unlink {{package_name}}`
`npm {{[r|unlink]}} {{package_name}}`