1 | # get-pkgs [![NPM version](https://badge.fury.io/js/get-pkgs.svg)](http://badge.fury.io/js/get-pkgs) [![Build Status](https://travis-ci.org/jonschlinkert/get-pkgs.svg)](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 with [npm](https://www.npmjs.com/)
|
6 |
|
7 | ```sh
|
8 | $ npm i get-pkgs --save
|
9 | ```
|
10 |
|
11 | ## Usage
|
12 |
|
13 | ```js
|
14 | var get = require('get-pkgs');
|
15 |
|
16 | // filter out properties like `_shasum`
|
17 | get(['assemble', 'verb'], '!_*', function(err, pkgs) {
|
18 | console.log(pkgs);
|
19 | });
|
20 | ```
|
21 |
|
22 | ## Related projects
|
23 |
|
24 | * [filter-object](https://www.npmjs.com/package/filter-object): Filter an object by its keys or values. Returns a copy of an object filtered… [more](https://www.npmjs.com/package/filter-object) | [homepage](https://github.com/jonschlinkert/filter-object)
|
25 | * [helper-reflinks](https://www.npmjs.com/package/helper-reflinks): Template helper for generating a list of markdown formatted reference links to github repos for… [more](https://www.npmjs.com/package/helper-reflinks) | [homepage](https://github.com/helpers/helper-reflinks)
|
26 | * [helper-related](https://www.npmjs.com/package/helper-related): Template helper for generating a list of links to the homepages of related GitHub/npm projects. | [homepage](https://github.com/helpers/helper-related)
|
27 |
|
28 | ## Running tests
|
29 |
|
30 | Install dev dependencies:
|
31 |
|
32 | ```sh
|
33 | $ npm i -d && npm test
|
34 | ```
|
35 |
|
36 | ## Contributing
|
37 |
|
38 | Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/get-pkgs/issues/new).
|
39 |
|
40 | ## Author
|
41 |
|
42 | **Jon Schlinkert**
|
43 |
|
44 | + [github/jonschlinkert](https://github.com/jonschlinkert)
|
45 | + [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
46 |
|
47 | ## License
|
48 |
|
49 | Copyright © 2015 Jon Schlinkert
|
50 | Released under the MIT license.
|
51 |
|
52 | ***
|
53 |
|
54 | _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 28, 2015._ |
\ | No newline at end of file |