summaryrefslogtreecommitdiff
path: root/deps/npm/doc/api/npm-restart.md
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/doc/api/npm-restart.md')
-rw-r--r--deps/npm/doc/api/npm-restart.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/deps/npm/doc/api/npm-restart.md b/deps/npm/doc/api/npm-restart.md
new file mode 100644
index 000000000..c40704438
--- /dev/null
+++ b/deps/npm/doc/api/npm-restart.md
@@ -0,0 +1,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)