get-pkg

Get the package.json for a project from npm.
This code was pulled out of get-pkgs.
Install
Install with npm
$ npm i get-pkg --save
Usage
var getPkg = require('get-pkg');
getPkg('generate', function(err, pkg) {
console.log(pkg);
});
Related projects
- get-pkgs: Get the package.json for an array of repos from the npm registry, optionally filtering properties… more | homepage
- github-base: Base methods for creating node.js apps that work with the GitHub API. | homepage
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Jon Schlinkert
License
Copyright © 2015 Jon Schlinkert
Released under the MIT license.
This file was generated by verb-cli on November 22, 2015.