npm-help-search, npm-explore, npm-rebuild: add pages (#18931)

Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
JanviNandre
2025-10-27 03:59:02 +11:00
committed by GitHub
parent cebb4012f9
commit 55a788b817
4 changed files with 59 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
# npm explore
> Browse an installed npm package.
> More information: <https://docs.npmjs.com/cli/npm-explore>.
- Browse an installed package:
`npm explore {{package_name}}`
- Browse a package and run a command inside it:
`npm explore {{package_name}} -- {{command}}`
+12
View File
@@ -0,0 +1,12 @@
# npm help-search
> Search npm help documentation using a keyword.
> More information: <https://docs.npmjs.com/cli/npm-help-search>.
- Search for commands or topics related to a keyword:
`npm help-search {{keyword}}`
- Search with multiple words:
`npm help-search {{keyword1 keyword2 ...}}`
+7
View File
@@ -0,0 +1,7 @@
# npm-rb
> This command is an alias of `npm-rebuild`.
- View documentation for the original command:
`tldr npm-rebuild`
+28
View File
@@ -0,0 +1,28 @@
# npm rebuild
> Rebuild native Node.js packages after Node or dependency changes.
> More information: <https://docs.npmjs.com/cli/npm-rebuild>.
- Rebuild a specific package:
`npm {{[rb|rebuild]}} {{package}}`
- Rebuild all installed packages:
`npm {{[rb|rebuild]}}`
- Rebuild with verbose output:
`npm {{[rb|rebuild]}} --verbose`
- Rebuild a package in a specific directory:
`npm {{[rb|rebuild]}} --prefix {{path/to/dir}} {{package}}`
- Rebuild without using the npm cache:
`npm {{[rb|rebuild]}} --no-cache`
- Rebuild in global mode:
`npm {{[rb|rebuild]}} {{[-g|--global]}}`