1.0.0 • Published 8 years ago
latest-push v1.0.0
latest-push
Get the latest push of a GitHub user.
Install
$ npm install --save latest-push
Usage
const latestPush = require('latest-push');
latestPush('SamVerschueren', {token: 'foo'}).then(push => {
//=> the latest push object
});
API
latestPush(user, options)
Returns a promise for the latest push object.
user
Type: string
User to retrieve the latest commit for.
options
token
Type: string
GitHub access token.
Can be set globally with the GITHUB_TOKEN
environment variable.
pages
Type: Number
Default: 5
Maximum number of pages to iterate over to retrieve the latest push.
exclude
Type: Array
Push IDs that should be skipped as result.
License
MIT © Sam Verschueren