UNPKG

2.26 kBMarkdownView Raw
1# get-pkgs [![NPM version](https://img.shields.io/npm/v/get-pkgs.svg?style=flat)](https://www.npmjs.com/package/get-pkgs) [![NPM downloads](https://img.shields.io/npm/dm/get-pkgs.svg?style=flat)](https://npmjs.org/package/get-pkgs) [![Build Status](https://img.shields.io/travis/jonschlinkert/get-pkgs.svg?style=flat)](https://travis-ci.org/jonschlinkert/get-pkgs)
2
3> Get the package.json for an array of repos from the npm registry, optionally filtering properties using glob patterns.
4
5## Install
6
7Install with [npm](https://www.npmjs.com/):
8
9```sh
10$ npm install get-pkgs --save
11```
12
13## Usage
14
15```js
16var getPkgs = require('get-pkgs');
17
18getPkgs(['assemble', 'verb'], function(err, pkgs) {
19 console.log(pkgs);
20});
21```
22
23## Related projects
24
25You might also be interested in these projects:
26
27* [get-first-commit](https://www.npmjs.com/package/get-first-commit): Returns a git repository's first commit as a JavaScript object. | [homepage](https://github.com/jonschlinkert/get-first-commit)
28* [get-pkg](https://www.npmjs.com/package/get-pkg): Get the package.json for a project from npm. | [homepage](https://github.com/jonschlinkert/get-pkg)
29* [github-base](https://www.npmjs.com/package/github-base): Base methods for creating node.js apps that work with the GitHub API. | [homepage](https://github.com/jonschlinkert/github-base)
30
31## Contributing
32
33Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/get-pkgs/issues/new).
34
35## Building docs
36
37Generate readme and API documentation with [verb](https://github.com/verbose/verb):
38
39```sh
40$ npm install verb && npm run docs
41```
42
43Or, if [verb](https://github.com/verbose/verb) is installed globally:
44
45```sh
46$ verb
47```
48
49## Running tests
50
51Install dev dependencies:
52
53```sh
54$ npm install -d && npm test
55```
56
57## Author
58
59**Jon Schlinkert**
60
61* [github/jonschlinkert](https://github.com/jonschlinkert)
62* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
63
64## License
65
66Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
67Released under the [MIT license](https://github.com/jonschlinkert/get-pkgs/blob/master/LICENSE).
68
69***
70
71_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on April 11, 2016._
\No newline at end of file