1.0.25 • Published 9 years ago
promisify-npm v1.0.25
promisify-npm
The library is mainly used to operate npm daily routines in your application. perfect for making efficient tools.
Usage
var npm = require('promisify-npm');
npm
.getPkgInfo('react')
.then(function(d) {
console.log(d.name,
d.version,
d.description);
})
.catch(function(e) {
console.log(e);
})
npm
.install('promisify-git')
.then(function(pkg_infos) {
console.log(pkg_infos);
})
.catch(function(e) {
console.log(e);
})
npm
.uninstall(['promisify-git','react'],'/something/folder/xx')
.then(function(d) {
console.log(d);
})
.catch(function(e) {
console.log(e);
})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.
Good Library Companions
1.0.25
9 years ago
1.0.24
9 years ago
1.0.23
9 years ago
1.0.22
9 years ago
1.0.21
9 years ago
1.0.20
9 years ago
1.0.19
9 years ago
1.0.16
9 years ago
1.0.15
9 years ago
1.0.14
9 years ago
1.0.13
9 years ago
1.0.12
9 years ago
1.0.11
10 years ago
1.0.10
10 years ago
1.0.9
10 years ago
1.0.8
10 years ago
1.0.7
10 years ago
1.0.6
10 years ago
1.0.5
10 years ago
1.0.4
10 years ago
1.0.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago