github-orgs-packages
v1.2.1
Published
Get information for all packages inside of your github organisation
Downloads
8
Maintainers
Readme
github-orgs-packages
Description
Get information for all packages inside of your github organisation
Installation
npm:
$ npm install -S github-orgs-packages
yarn:
$ yarn add github-orgs-packages
Usage
You need to provide following env variables:
GH_AUTH_TOKEN=***
GH_ORG_NAME=***
Code:
const githubOrgsPackages = require('github-orgs-packages');
const myOrgPackages = githubOrgsPackages()
myOrgPackages
.then((packages) => {
// do smth with packages
})
.catch((error) => {
// do smth with error
})
It will return similar output format to:
[
{
"name": "xyz",
"description": "Publish npm packages with fewer screw-ups",
"currentVersion": "3.0.0",
"homepage": "https://github.com/davidchambers/xyz",
"license": "WTFPL",
"projects": [
{
"name": "cool-project",
"version": "2.1.0",
"description": "Description"
}
]
},
{
"name": "eslint",
"description": "An AST-based pattern checker for JavaScript.",
"currentVersion": "4.19.0",
"homepage": "https://eslint.org",
"license": "MIT",
"projects": [
{
"name": "another-cool-project",
"version": "2.1.0",
"description": "Description"
}
]
}
]
Dependencies
- bluebird: Full featured Promises/A+ implementation with exceptionally good performance
- github-api: A higher-level wrapper around the Github API.
- package-info: Get the information of a npm package
- ramda: A practical functional library for JavaScript programmers.
Dev Dependencies
- eslint: An AST-based pattern checker for JavaScript.
- eslint-config-sexy: Mostly sexy config
License
ISC © Oleg Koval