promisified-npm
v1.0.0
Published
Pure promisified NPM node module. Use entire NPM in a promise way.
Maintainers
Readme
promisified-npm
Pure promisified npm node module. Use entire npm in a promise way.
- Compare with others:
- npm-as-promised: Only
loadandcommandsinnpm. - promisify-npm: It's a wrap of
npm command line, it's not originalnpmat all.
- npm-as-promised: Only
Install
npm i promisified-npm --saveUsage
const npm = require('promisified-npm');
const npmConfig = {
loglevel: 'silent'
};
npm.loadAsync(npmConfig).then(() => {
return npm.commands.lsAsync('', true).then((data) => {
return data.
}).catch((err) => {
console.log(err);
});
});For more usage of promisified npm, please check test directory.
License
MIT
