# parse-links

> Parse the Links header format and return a javascript object.

Latest version **0.1.0** (published 2013-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install parse-links
pnpm add parse-links
yarn add parse-links
bun add parse-links
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2013-11-11 |
| First published | 2012-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | José F. Romaniello |
| Maintainers | jfromaniello |
| Keywords | links, http |

## Links

- npm: https://www.npmjs.com/package/parse-links
- Repository: https://github.com/jfromaniello/parse-links
- Issues: https://github.com/jfromaniello/parse-links/issues
- npm.io page: https://npm.io/package/parse-links

## Recent versions

- 0.1.0 (latest) — 2013-11-11
- 0.0.1 — 2012-12-19

## README

Parse a [Links header](http://www.w3.org/Protocols/9707-link-header.html) into a javascript object.

## Install

    npm install parse-links

## Usage

~~~javascript
var parseLinks = require('parse-links');
var someLinksHeader = '</api/users?page=0&per_page=2>; rel="first", ' +
                      '</api/users?page=1&per_page=2>; rel="next", ' +
                      '</api/users?page=3&per_page=2>; rel="last"';

console.log(parseLinks(someLinksHeader));

// This will print:
// { 
//   first: '/api/users?page=0&per_page=2',
//   next: '/api/users?page=1&per_page=2',
//   last: '/api/users?page=3&per_page=2' 
// }
~~~

## License

MIT!

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