1 .\" Generated with Ronnjs 0.3.8
2 .\" http://github.com/kapouer/ronnjs/
4 .TH "NPM\-RUN\-SCRIPT" "3" "December 2013" "" ""
7 \fBnpm-run-script\fR \-\- Run arbitrary package scripts
12 npm\.commands\.run\-script(args, callback)
17 This runs an arbitrary command from a package\'s "scripts" object\.
20 It is used by the test, start, restart, and stop commands, but can be
21 called directly, as well\.
24 The \'args\' parameter is an array of strings\. Behavior depends on the number
25 of elements\. If there is only one element, npm assumes that the element
26 represents a command to be run on the local repository\. If there is more than
27 one element, then the first is assumed to be the package and the second is
28 assumed to be the command to run\. All other elements are ignored\.