promisified-npm

    1.0.0 • Public • Published

    promisified-npm

    Build Status

    Pure promisified npm node module. Use entire npm in a promise way.

    • Compare with others:
      • npm-as-promised: Only load and commands in npm.
      • promisify-npm: It's a wrap of npm command line, it's not original npm at all.

    Install

    npm i promisified-npm --save
    

    Usage

    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

    Install

    npm i promisified-npm

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • ccharlieli