promisify-npm
The library is mainly used to operate npm daily routines in your application. perfect for making efficient tools.
Usage
var npm = ; npm npm npm
API
The param pkgs
could be a string
or array
which is supporting batch operations.
The param where
is designed for specific purpose if you'd like to install packages as you want. default is process.cwd
- install(pkgs [,where])
- uninstall(pkgs [,where])
- hasInstalled(pkgs,[,where])
- initDefaultPkg([where],[packageJson])
coutinuing...
This library is under developing, All API might be changed for some reasons. So, be cautious using it.