项目作者: Ortanon

项目描述 :
A vanilla ES2015 adaptation of the parse-link-header npm package
高级语言: JavaScript
项目地址: git://github.com/Ortanon/link-header-parser.git
创建时间: 2019-10-09T22:30:19Z
项目社区:https://github.com/Ortanon/link-header-parser

开源协议:

下载


link-header-parser

A vanilla ES2015 adaptation of https://www.npmjs.com/package/parse-link-header

Why?

I’m learning JavaScript and it seemed interesting to perform this exercise. Also I really like the idea of pagination with headers, so having a lightweight parser that can go in the browser without extra steps seemed useful.

Aside

There was one issue in the parse-link-header project, and a PR in it, but it was never merged and instead there was this weird argument about whether collaborators should also be able to push to npm (or something). I went ahead and implemented that change too.