New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

github-parse-link

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-parse-link

Parse GitHub link header response

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

Parse GitHub link header response

Install

$ npm install --save github-parse-link

Usage

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

Keywords

github

FAQs

Package last updated on 07 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts