node, npx: fix of a command and clearer descriptions (#8899)

pull/23/head
Francesco Franchina 2023-04-08 14:50:02 +02:00 committed by GitHub
parent cd7e9bc003
commit 5f514ce8a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -19,9 +19,9 @@
`node -e "{{code}}"` `node -e "{{code}}"`
- Evaluate and print result, useful to see node's dependencies versions: - Evaluate and print the result, useful to print node's dependencies versions:
`node -p "{{process.versions}}"` `node -p "process.versions"`
- Activate inspector, pausing execution until a debugger is connected once source code is fully parsed: - Activate inspector, pausing execution until a debugger is connected once source code is fully parsed:

View File

@ -3,21 +3,21 @@
> Execute binaries from `npm` packages. > Execute binaries from `npm` packages.
> More information: <https://github.com/npm/npx>. > More information: <https://github.com/npm/npx>.
- Execute the binary from a given npm module: - Execute the command from a local or remote `npm` package:
`npx {{module_name}} {{command_arguments}}` `npx {{command}} {{arg1 arg2 ...}}`
- In case a package has multiple binaries, specify the package name along with the binary: - In case multiple commands with the same name exist, it is possible to specify the package name:
`npx --package {{package_name}} {{module_name}}` `npx --package {{package_name}} {{command}}`
- Run a command if it exists in the current path or in `node_modules/.bin`: - Run a command if it exists in the current path or in `node_modules/.bin`:
`npx --no-install {{command}} {{command_arguments}}` `npx --no-install {{command}} {{command_arguments}}`
- Execute the binary from a given npm module suppressing any output from `npx` itself: - Execute a specific command suppressing any output from `npx` itself:
`npx --quiet {{module_name}} {{command_arguments}}` `npx --quiet {{command}} {{arg1 arg2 ...}}`
- Display help: - Display help: