Get all Github repos from a user or an organization
npm install github-repositories> Get all GitHub repos from a user or an organization
```
$ npm install github-repositories
`js
const githubRepositories = require('github-repositories');
(async () => {
console.log(await githubRepositories('kevva'));
//=> [{id: 29258368, name: 'animal-sounds', full_name: 'kevva/animal-sounds', …}, …]
})();
`
Returns a Promise
#### name
Type: string
Username or organization to fetch repos from.
#### options
Type: object
##### sort
Type: stringfull_name
Default:
Can be one of created, updated, pushed, full_name.
##### direction
Type: stringasc
Default: when using full_name, otherwise desc
Can be one of asc or desc.
##### token
Type: string
Token to authenticate with. Use this to increase the request count. Github supports
up to 60 unauthenticated request per hour. This is also required for accessing private
repos.
If you don't have a token you can generate a new one here.
##### endpoint
Type: stringhttps://api.github.com/
Default:
To support GitHub Enterprise.
Can be set globally with the GITHUB_ENDPOINT` environment variable.