Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonschlinkert/get-pkgs
Get package.json files for an array of repos from the npm registry.
https://github.com/jonschlinkert/get-pkgs
download get javascript jonschlinkert json node nodejs npm package package-json pkg request
Last synced: 15 days ago
JSON representation
Get package.json files for an array of repos from the npm registry.
- Host: GitHub
- URL: https://github.com/jonschlinkert/get-pkgs
- Owner: jonschlinkert
- License: mit
- Created: 2014-12-11T05:40:52.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-12-08T18:20:24.000Z (almost 6 years ago)
- Last Synced: 2024-10-10T18:26:02.319Z (28 days ago)
- Topics: download, get, javascript, jonschlinkert, json, node, nodejs, npm, package, package-json, pkg, request
- Language: JavaScript
- Homepage: https://github.com/jonschlinkert
- Size: 30.3 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# get-pkgs [![NPM version](https://img.shields.io/npm/v/get-pkgs.svg?style=flat)](https://www.npmjs.com/package/get-pkgs) [![NPM monthly downloads](https://img.shields.io/npm/dm/get-pkgs.svg?style=flat)](https://npmjs.org/package/get-pkgs) [![NPM total downloads](https://img.shields.io/npm/dt/get-pkgs.svg?style=flat)](https://npmjs.org/package/get-pkgs) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/get-pkgs.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/get-pkgs)
> Get the package.json for an array of repos from the npm registry, optionally filtering properties using glob patterns.
Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
## Install
Install with [npm](https://www.npmjs.com/):
```sh
$ npm install --save get-pkgs
```## Usage
```js
const getPkgs = require('get-pkgs');// takes a callback
getPkgs(['assemble', 'verb'], function(err, pkgs) {
console.log(pkgs);
});// or returns a promise
getPkgs(['assemble', 'verb'])
.then(pkgs => console.log(pkgs))
.catch(console.error);
```## About
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
Running Tests
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
```sh
$ npm install && npm test
```Building docs
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
To generate the readme, run the following command:
```sh
$ npm install -g verbose/verb#dev verb-generate-readme && verb
```### Related projects
You might also be interested in these projects:
* [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 "Returns a git repository's first commit as a JavaScript object.")
* [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 "Get the package.json for a project from npm.")
* [github-base](https://www.npmjs.com/package/github-base): Low-level methods for working with the GitHub API in node.js/JavaScript. | [homepage](https://github.com/jonschlinkert/github-base "Low-level methods for working with the GitHub API in node.js/JavaScript.")### Author
**Jon Schlinkert**
* [GitHub Profile](https://github.com/jonschlinkert)
* [Twitter Profile](https://twitter.com/jonschlinkert)
* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)### License
Copyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT License](LICENSE).***
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on December 08, 2018._