.TH "NPM\-RUN\-SCRIPT" "1" "September 2014" "" "" .SH "NAME" \fBnpm-run-script\fR \- Run arbitrary package scripts .SH SYNOPSIS .P .RS 2 .EX npm run\-script [command] [\-\- ] npm run [command] [\-\- ] .EE .RE .SH DESCRIPTION .P This runs an arbitrary command from a package's \fB"scripts"\fR object\. If no package name is provided, it will search for a \fBpackage\.json\fR in the current folder and use its \fB"scripts"\fR object\. If no \fB"command"\fR is provided, it will list the available top level scripts\. .P It is used by the test, start, restart, and stop commands, but can be called directly, as well\. .SH SEE ALSO .RS 0 .IP \(bu 2 npm help 7 scripts .IP \(bu 2 npm help test .IP \(bu 2 npm help start .IP \(bu 2 npm help restart .IP \(bu 2 npm help stop .RE