Add node_modules

This commit is contained in:
Rachael Sewell
2019-08-06 21:05:52 -07:00
parent 332696c680
commit d166896dc8
368 changed files with 23488 additions and 501 deletions

View File

@@ -0,0 +1,15 @@
module.exports = getPageLinks
function getPageLinks (link) {
link = link.link || link.headers.link || ''
const links = {}
// link format:
// '<https://api.github.com/users/aseemk/followers?page=2>; rel="next", <https://api.github.com/users/aseemk/followers?page=2>; rel="last"'
link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, (m, uri, type) => {
links[type] = uri
})
return links
}