# latest-push

> Get the latest push of a GitHub user.

Latest version **1.0.0** (published 2016-05-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install latest-push
pnpm add latest-push
yarn add latest-push
bun add latest-push
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-05-01 |
| First published | 2015-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Sam Verschueren |
| Maintainers | samverschueren |
| Keywords | github, git, latest, push, gh, git-hub |

## Links

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

## Dependencies (2)

- [gh-got](https://npm.io/package/gh-got.md) ^4.0.0
- [github-parse-link](https://npm.io/package/github-parse-link.md) ^1.1.1

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-05-01
- 0.3.1 — 2015-12-11
- 0.3.0 — 2015-12-10
- 0.2.0 — 2015-12-08
- 0.1.0 — 2015-12-06

## README

# latest-push [![Build Status](https://travis-ci.org/SamVerschueren/latest-push.svg?branch=master)](https://travis-ci.org/SamVerschueren/latest-push)

> Get the latest push of a GitHub user.


## Install

```
$ npm install --save latest-push
```


## Usage

```js
const latestPush = require('latest-push');

latestPush('SamVerschueren', {token: 'foo'}).then(push => {
	//=> the latest push object
});
```


## API

### latestPush(user, [options])

Returns a promise for the latest push object.

#### user

Type: `string`

User to retrieve the latest commit for.

#### options

##### token

Type: `string`

GitHub [access token](https://github.com/settings/tokens/new).

Can be set globally with the `GITHUB_TOKEN` environment variable.

##### pages

Type: `Number`<br>
Default: `5`

Maximum number of pages to iterate over to retrieve the latest push.

##### exclude

Type: `Array`

Push IDs that should be skipped as result.


## License

MIT © [Sam Verschueren](http://github.com/SamVerschueren)

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