Nitrogen Poisonous Monoxide

    github-parse-link

    1.1.1 • Public • Published

    github-parse-link Build Status

    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

    Install

    npm i github-parse-link

    DownloadsWeekly Downloads

    16

    Version

    1.1.1

    License

    MIT

    Last publish

    Collaborators

    • samverschueren