dpndon

0.0.11 • Public • Published

dpndonBuild Status

dpndon - fetch information of npm modules that the project depend on.

Usage

const dpndon = require('dpndon');
 
dpndon({
  pkgName: 'dpndon',
  dependencyTypes: ['dependencies', 'devDependencies'],
  props: ['name', 'homepage']
})
.then(console.log)
.catch(console.error);
 
/** output:
{
  dependencies: [
    {
      name: 'package-json',
      homepage: 'https://github.com/sindresorhus/package-json#readme
    },
    { 
      name: 'read-pkg',
      homepage: 'https://github.com/sindresorhus/read-pkg#readme'
    } 
  ],
  devDependencies: [
    { 
      name: 'chai',
      homepage: 'http://chaijs.com'
    },
    { 
      name: 'chai-as-promised',
      homepage: 'https://github.com/domenic/chai-as-promised#readme'
    },
    { 
      name: 'mocha',
      homepage: 'https://mochajs.org'
    },
    { 
      name: 'sinon',
      homepage: 'http://sinonjs.org/'
    }
  ]
}
*/

License

MIT

Author

Kotaro Takahashi@k4h4shi

/dpndon/

    Package Sidebar

    Install

    npm i dpndon

    Weekly Downloads

    9

    Version

    0.0.11

    License

    MIT

    Last publish

    Collaborators

    • k4h4shi