Manage and query NPM packages.
Install an NPM package.
If no directory is specified, the package will be installed globally. If no package is specified, the dependencies (from package.json) of the package in the given directory will be installed.
CLI example:
salt '*' npm.install coffee-script
List installed NPM packages.
If no directory is specified, this will return the list of globally- installed packages.
CLI example:
salt '*' npm.list
Uninstall an NPM package.
If no directory is specified, the package will be uninstalled globally.
CLI example:
salt '*' npm.uninstall coffee-script