getpackages

Fetch the information for packages inside the npm registry

npm install getpackages
2 downloads in the last week
6 downloads in the last month

Get Packages

Build Status NPM version Gittip donate button Flattr donate button PayPayl donate button

Fetch the information for packages inside the npm registry

Install

Node, Browserify

  • Use: require('getpackages')
  • Install: npm install --save getpackages

Ender

  • Use: require('getpackages')
  • Install: ender add getpackages

Usage

// Create our instance
var getter = require('getpackages').create({
    onlyLatest: true,           // optional (defaults to `true`), accepts a boolean, `true` will fetch information only for the latest version, `false` wil fetch information for all versions
    log: console.log           // optional (defaults to `null`), accepts a function that accepts the arguments: level, message... 
});

// Fetch the data on these github repositories
getter.fetchPackagesByNames(['bevry/getpackages'], function(err, entries){
    console.log(err, entries);

    // Fetch all the repo data on these github users/organisations
    getter.fetchPackagesByKeyword('docpad-plugin', function(err, entries){
        console.log(err, entries);

        // Get the combined listing
        console.log(getter.getEntries());
    });
});

Contribute

Discover how you can contribute by heading on over to the Contributing.md file.

History

Discover the change history by heading on over to the History.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

Gittip donate button Flattr donate button PayPayl donate button

Contributors

No contributors yet! Will you be the first? Discover how you can contribute by heading on over to the Contributing.md file.

License

Licensed under the incredibly permissive MIT license

Copyright © 2013+ Bevry Pty Ltd us@bevry.me (http://bevry.me)

npm loves you