Have ideas to improve npm?Join in the discussion! »

    npm-get-top-dependents

    1.0.2 • Public • Published

    npm-get-top-dependents

    NPM Version NPM Downloads Build Status Coverage Status Dependency Status

    Get the top dependents of an npm package.

    Install: npm install npm-get-top-dependents

    Usage:

    var getTopDependents = require('npm-get-top-dependents');
     
    getTopDependents('npm-package-arg', function(err, result) {
      /* => result is something like
       { downloads: 3245765,
         start: '2016-04-02',
         end: '2016-05-01',
         package: 'npm' }, ... ]  */
    });

    API: getTopDependents(options | package name, callback)

    Options:

    • count: Number of returned packages.
    • package: Package name if an options object was passed.

    License

    MIT

    Install

    npm i npm-get-top-dependents

    DownloadsWeekly Downloads

    5

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • avatar