npm-uninstall(3)

npm-uninstall3

Uninstall a package programmatically

Usage

npm.commands.uninstall(packages, callback)

Overview

This acts much the same ways as uninstalling on the command-line.

The ´packages´ parameter is an array of strings. Each element in the array is the name of a package to be uninstalled.

Finally, ´callback´ is a function that will be called when all packages have been uninstalled or when an error has been encountered.

From npm 1.4.21+ds-2 in Debian 8 (Jessie). Parsed by carta from the page's man source.