0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/deps/npm/doc/api/npm-restart.md
2013-07-12 08:56:26 -07:00

510 B

npm-restart(3) -- Start a package

SYNOPSIS

npm.commands.restart(packages, callback)

DESCRIPTION

This runs a package's "restart" script, if one was provided. Otherwise it runs package's "stop" script, if one was provided, and then the "start" script.

If no version is specified, then it restarts the "active" version.

npm can run tests on multiple packages. Just specify multiple packages in the packages parameter.

SEE ALSO

  • npm-start(3)
  • npm-stop(3)