Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bevry-archive/getpackages
Deprecated: Use https://github.com/sindresorhus/npm-keyword
https://github.com/bevry-archive/getpackages
archived http-request nodejs npm-client
Last synced: about 9 hours ago
JSON representation
Deprecated: Use https://github.com/sindresorhus/npm-keyword
- Host: GitHub
- URL: https://github.com/bevry-archive/getpackages
- Owner: bevry-archive
- License: other
- Created: 2013-10-26T02:21:21.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-12-08T10:48:04.000Z (almost 5 years ago)
- Last Synced: 2024-09-18T23:29:31.120Z (about 2 months ago)
- Topics: archived, http-request, nodejs, npm-client
- Language: CoffeeScript
- Homepage:
- Size: 72.3 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
Get Packages
Fetch the information for packages inside the npm registry
Install
- Install:
npm install --save getpackages
- Module:
require('getpackages')
Editions
This package is published with the following editions:
-
getpackages
aliasesgetpackages/index.js
which uses Editions to automatically select the correct edition for the consumers environment -
getpackages/source/index.coffee
is Source + CoffeeScript + Require -
getpackages/esnext/index.js
is CoffeeScript Compiled + ESNext + Require -
getpackages/es2015/index.js
is CoffeeScript Compiled + ES2015 + Require
Older environments may need Babel's Polyfill or something similar.
## Usage
``` javascript
// 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());
});
});
```
- When `onlyLatest` is `true`, entry data is retrieved from: http://registry.npmjs.org/#{packageName}/latest
- When `onlyLatest` is `false`, entry data is retrieved from: http://registry.npmjs.org/#{packageName}
Contribute
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
History
Discover the release 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?
Contributors
These amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
License
Unless stated otherwise all works are:
- Copyright © 2013+ Bevry Pty Ltd
and licensed under: