GitHub Lite (Work In Progress, far from complete)
An attempt at being a light GitHub API wrapper for browsers.
- Returns native Response Objects
- Import only the API Modules you need
- Super tiny JS if compiled for ES6 ready browsers
Depending on how you build this project the resulting bundled js may be just as large as other libraries. Over time as the native browser support for ES2015 and Fetch increases, the filesize will shrink when we don't need to transplile or shim features used.
Examples
Basic Example
const client = clientPullRequests
Auth Example
// User/Pass Auth const client = clientPullRequests // Or use tokenconst client = clientPullRequests
Import only the API modules you need
// Use the module by itselfconst pullsClient = token: 'my-github-token' pullsClient // Or construct a client wrapper with the modules you need const client = token: 'my-github-token' PullRequests Repositories clientPullRequestsclientRepositories