diff --git a/pages/common/node.md b/pages/common/node.md index 01d5dda39..b6c42d9a1 100644 --- a/pages/common/node.md +++ b/pages/common/node.md @@ -19,9 +19,9 @@ `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: diff --git a/pages/common/npx.md b/pages/common/npx.md index a728017f1..360bb2aef 100644 --- a/pages/common/npx.md +++ b/pages/common/npx.md @@ -3,21 +3,21 @@ > Execute binaries from `npm` packages. > More information: . -- 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`: `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: