npm-restart.md 510 Bytes
Newer Older
Nicolas Widart's avatar
Nicolas Widart committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
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)