3.0.0 • Published 8 years ago

latest-commit v3.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

latest-commit Build Status

Get the latest commit of a GitHub user.

Install

$ npm install --save latest-commit

Usage

const latestCommit = require('latest-commit');

latestCommit('SamVerschueren', {token: 'foo'}).then(commit => {
	//=> commit object
});

API

latestCommit(user, options)

Returns a promise for the latest commit.

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.

License

MIT © Sam Verschueren