# gh-latest-commit

> Get a users latest GitHub commit

Latest version **2.0.0** (published 2023-02-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install gh-latest-commit
pnpm add gh-latest-commit
yarn add gh-latest-commit
bun add gh-latest-commit
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2023-02-22 |
| First published | 2019-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=14.16 |
| Dependencies | 2 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Knut Kirkhorn |
| Maintainers | knutkirkhorn |
| Keywords | github, latest, commit |

## Links

- npm: https://www.npmjs.com/package/gh-latest-commit
- Repository: https://github.com/knutkirkhorn/gh-latest-commit
- Homepage: https://github.com/knutkirkhorn/gh-latest-commit#readme
- Issues: https://github.com/knutkirkhorn/gh-latest-commit/issues
- npm.io page: https://npm.io/package/gh-latest-commit

## Dependencies (2)

- [got](https://npm.io/package/got.md) ^12.5.3
- [isemail](https://npm.io/package/isemail.md) ^3.2.0

## Recent versions

- 2.0.0 (latest) — 2023-02-22
- 1.1.2 — 2023-01-21
- 1.1.1 — 2021-11-09
- 1.1.0 — 2019-09-07
- 1.0.0 — 2019-06-29

## README

# gh-latest-commit

> :octocat: Get a users latest GitHub commit

## Installation

```
npm install gh-latest-commit
```

## Usage

```js
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.

---
_Source: https://npm.io/package/gh-latest-commit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
