node/deps/npm/man/man3/npm-uninstall.3

21 lines
546 B
Groff
Raw Normal View History

.TH "NPM\-UNINSTALL" "3" "February 2015" "" ""
.SH "NAME"
2014-09-25 05:41:07 +08:00
\fBnpm-uninstall\fR \- uninstall a package programmatically
.SH SYNOPSIS
.P
.RS 2
2014-11-05 07:08:12 +08:00
.nf
npm\.commands\.uninstall(packages, callback)
2014-11-05 07:08:12 +08:00
.fi
2014-09-25 05:41:07 +08:00
.RE
.SH DESCRIPTION
.P
This acts much the same ways as uninstalling on the command\-line\.
.P
2014-09-25 05:41:07 +08:00
The 'packages' parameter is an array of strings\. Each element in the array is
the name of a package to be uninstalled\.
.P
2014-09-25 05:41:07 +08:00
Finally, 'callback' is a function that will be called when all packages have been
uninstalled or when an error has been encountered\.
2014-09-25 05:41:07 +08:00