Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oleg-koval/github-orgs-packages
Get information about all packages inside of your GitHub organisation
https://github.com/oleg-koval/github-orgs-packages
dependencies devdependencies github github-api github-organizations github-repos hacktoberfest hacktoberfest2021 javascript javascript-library nodejs npm repositories
Last synced: 23 days ago
JSON representation
Get information about all packages inside of your GitHub organisation
- Host: GitHub
- URL: https://github.com/oleg-koval/github-orgs-packages
- Owner: oleg-koval
- Created: 2018-03-13T17:11:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T07:49:32.000Z (2 months ago)
- Last Synced: 2024-10-05T01:32:19.932Z (about 1 month ago)
- Topics: dependencies, devdependencies, github, github-api, github-organizations, github-repos, hacktoberfest, hacktoberfest2021, javascript, javascript-library, nodejs, npm, repositories
- Language: JavaScript
- Homepage:
- Size: 278 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 14
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# github-orgs-packages ![linted_by _sexy](https://img.shields.io/badge/linted_by-_sexy-brightgreen.svg)
# Description
Get information for all packages inside of your github organisation
# Installation
npm:
```sh
$ npm install -S github-orgs-packages
```yarn:
```sh
$ yarn add github-orgs-packages
```# Usage
You need to provide following env variables:```
GH_AUTH_TOKEN=***
GH_ORG_NAME=***
```Code:
```js
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:
```json
[
{
"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](https://ghub.io/bluebird): Full featured Promises/A+ implementation with exceptionally good performance
- [github-api](https://ghub.io/github-api): A higher-level wrapper around the Github API.
- [package-info](https://ghub.io/package-info): Get the information of a npm package
- [ramda](https://ghub.io/ramda): A practical functional library for JavaScript programmers.## Dev Dependencies
- [eslint](https://ghub.io/eslint): An AST-based pattern checker for JavaScript.
- [eslint-config-sexy](https://ghub.io/eslint-config-sexy): Mostly sexy config## License
ISC © [Oleg Koval](https://github.com/oleg-koval)