How to parse link header from github API
The parse-link-header NPM module exists for this purpose; its source can be found on github under a MIT license (free for commercial use). Installation is as simple as: npm install parse-link-header Usage looks like the following: var parse = require(‘parse-link-header’); var parsed = parse(‘<https://api.github.com/repos?page=3&per_page=100>; rel=”next”, <https://api.github.com/repos?page=50&per_page=100>; rel=”last”‘) …after which one has parsed.next, parsed.last, etc: { … Read more