# github-parse-link

> Parse GitHub link header response

Latest version **1.1.1** (published 2015-12-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install github-parse-link
pnpm add github-parse-link
yarn add github-parse-link
bun add github-parse-link
```

## 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.1.1 |
| Published | 2015-12-07 |
| First published | 2015-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Sam Verschueren |
| Maintainers | samverschueren |
| Keywords | github, gh, parse, parser, parsing, link, paging, next, prev, previous, first, last, headers |

## Links

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

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2015-12-07
- 1.1.0 — 2015-12-07
- 1.0.1 — 2015-12-06
- 1.0.0 — 2015-12-05

## README

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

> Parse GitHub `link` header response


## Install

```
$ npm install --save github-parse-link
```


## Usage

```js
const parse = require('github-parse-link');

parse('<foo>; rel="next", <bar>; rel="last"');
//=> {next: 'foo', last: 'bar'}

parse('<foz>; rel="prev", <baz>; rel="first"');
//=> {prev: 'foz', first: 'baz'}
```


## API

### parse(input)

#### input

Type: `string`

The GitHub `link` header response to parse.


## License

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

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