1.0.0 • Published 8 years ago
last-active-repository v1.0.0
last-active-repository
Retrieve a user's last active GitHub repository.
Install
$ npm install --save last-active-repository
Usage
const repository = require('last-active-repository');
repository('SamVerschueren', {token: 'github-token'}).then(repo => {
//=> repository object
});
API
repository(user, options)
Returns a promise for the last active repository
user
Type: string
The user to retrieve the last active repository for.
options
token
Type: string
GitHub access token.
Can be overriden globally with the GITHUB_TOKEN
environment variable.
License
MIT © Sam Verschueren
1.0.0
8 years ago