From 5f514ce8a5fb67abd0d41fc4f99e3f4212ba18ec Mon Sep 17 00:00:00 2001 From: Francesco Franchina Date: Sat, 8 Apr 2023 14:50:02 +0200 Subject: [PATCH] node, npx: fix of a command and clearer descriptions (#8899) --- pages/common/node.md | 4 ++-- pages/common/npx.md | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/common/node.md b/pages/common/node.md index 01d5dda396..b6c42d9a16 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 a728017f19..360bb2aefb 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: