A wrapper to work with the Github Web API.
This library relies on Fetch API. And this API is supported in the following browsers.
![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|
39+ ✔ | 42+ ✔ | 29+ ✔ | 10.1+ ✔ | Nope ✘ |
This library depends on fetch to make requests to the Spotify Web API. For environments that don't support fetch, you'll need to provide a polyfill to browser or polyfill to Node.
$ npm install github-api-wrapper --save
// to import a specific method
import GithubApiWrapper from 'github-api-wrapper';
const github = new GithubApiWrapper({});
Will setup 'mundipagg' as default
or use as you want:
const github = new GithubApiWrapper({
userName: 'paulajbastos'
});
// using method
github.repositories.getRepoList();
github.commits.getCommitsList('repoName');
github.contributors.getContributorsList('repoName');
const githubApiWrapper = require('github-api-wrapper');
<!-- to import non-minified version -->
<script src="github-api-wrapper.umd.js"></script>
<!-- to import minified version -->
<script src="github-api-wrapper.umd.min.js"></script>
After that the library will be available to the Global as githubApiWrapper
. Follow an example:
We use SemVer for versioning. For the versions available, see the tags on this repository.
[Paula Junqueira Bastos] |
---|
Paula Junqueira Bastos |
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details