Get the latest commit of a GitHub user.
$ npm install --save latest-commit
const latestCommit = require('latest-commit');
latestCommit('SamVerschueren', {token: 'foo'}).then(commit => {
//=> commit object
});
Returns a promise for the latest commit.
Type: string
User to retrieve the latest commit for.
Type: string
GitHub access token.
Can be set globally with the GITHUB_TOKEN
environment variable.
MIT © Sam Verschueren