summaryrefslogtreecommitdiff
path: root/deps/npm/doc/api/uninstall.md
blob: 4505295b3b3d3a43c500b3d31d789da8e5d4eea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
npm-uninstall(3) -- uninstall a package programmatically
========================================================

## SYNOPSIS

    npm.commands.uninstall(packages, callback)

## DESCRIPTION

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.