gh-latest-commit

    1.1.1 • Public • Published

    gh-latest-commit

    :octocat: Get a users latest GitHub commit

    Installation

    $ npm install gh-latest-commit
    

    Usage

    const ghLatestCommit = require('gh-latest-commit');
    
    ghLatestCommit('knutkirkhorn').then(commit => {
        console.log(commit);
        // => { message: ..., url: ..., time: ... }
    });
    
    // Check if the commit is authored with the given email
    ghLatestCommit('knutkirkhorn', 'knutkirk@hotmail.com').then(commit => {
        console.log(commit);
        // => { message: ..., url: ..., time: ... }
    });

    API

    ghLatestCommit(username, [email])

    Returns the usernames latest GitHub commit. The author email of the commit needs to match if the email is set.

    License

    MIT © Knut Kirkhorn

    Install

    npm i gh-latest-commit

    DownloadsWeekly Downloads

    2

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    8.53 kB

    Total Files

    7

    Last publish

    Collaborators

    • knutkirkhorn