nodejs/deps/npm/man/man1/npm-run-script.1

36 lines
786 B
Groff
Raw Normal View History

2014-09-16 15:38:50 -07:00
.TH "NPM\-RUN\-SCRIPT" "1" "September 2014" "" ""
.SH "NAME"
2014-09-24 14:41:07 -07:00
\fBnpm-run-script\fR \- Run arbitrary package scripts
.SH SYNOPSIS
.P
.RS 2
.EX
npm run\-script [command] [\-\- <args>]
npm run [command] [\-\- <args>]
.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\.
2014-09-24 14:41:07 -07:00
.SH SEE ALSO
.RS 0
.IP \(bu 2
2014-09-16 15:38:50 -07:00
npm help 7 scripts
2014-09-24 14:41:07 -07:00
.IP \(bu 2
npm help test
2014-09-24 14:41:07 -07:00
.IP \(bu 2
npm help start
2014-09-24 14:41:07 -07:00
.IP \(bu 2
npm help restart
2014-09-24 14:41:07 -07:00
.IP \(bu 2
npm help stop
2014-09-24 14:41:07 -07:00
.RE