diff options
Diffstat (limited to 'deps/npm/doc/cli/npm-run-script.md')
-rw-r--r-- | deps/npm/doc/cli/npm-run-script.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/npm/doc/cli/npm-run-script.md b/deps/npm/doc/cli/npm-run-script.md index 6c3c2b7a9c..80b813cff7 100644 --- a/deps/npm/doc/cli/npm-run-script.md +++ b/deps/npm/doc/cli/npm-run-script.md @@ -3,11 +3,13 @@ npm-run-script(1) -- Run arbitrary package scripts ## SYNOPSIS - npm run-script <script> <name> + npm run-script [<pkg>] <command> ## DESCRIPTION -This runs an arbitrary command from a package's "scripts" object. +This runs an arbitrary command from a package's `"scripts"` object. +If no package name is provided, it will search for a `package.json` +in the current folder and use its `"scripts"` object. It is used by the test, start, restart, and stop commands, but can be called directly, as well. |