Skip to content

SamVerschueren/latest-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Get the latest commit of a GitHub user.

Resources

License

Stars

Watchers

Forks

Packages

No packages published