gh-latest-commit
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

gh-latest-commit

:octocat: Get a users latest GitHub commit

Installation

npm install gh-latest-commit

Usage

import ghLatestCommit from 'gh-latest-commit';

console.log(await ghLatestCommit('knutkirkhorn'));
// => { message: ..., url: ..., time: ... }

// Check if the commit is authored with the given email
console.log(await ghLatestCommit('knutkirkhorn', 'knutkirk@hotmail.com'));
// => { 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.

/gh-latest-commit/

    Package Sidebar

    Install

    npm i gh-latest-commit

    Weekly Downloads

    1

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    4.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • knutkirkhorn