文件名称:fetch-link-util:帮助程序提取提取链接头值
文件大小:9KB
文件格式:ZIP
更新时间:2024-03-01 18:29:33
fetch paging JavaScript
提取链接实用程序 帮助程序提取提取链接头值(分页) 例 import { getHeaderLink } from "fetch-link-util" ; async listAllBranches ( ) { let next = "https://api.github.com/repos/arlac77/fetch-link-util/branches" ; do { const response = await fetch ( next ) ; const json = await response . json ( ) ; console . log ( json . map ( branch => branch . name ) ) ; next = getLink ( response . headers ) ; } while (
【文件预览】:
fetch-link-util-master
----.github()
--------pr_labeler.yml(402B)
--------dependabot.yml(143B)
--------workflows()
----src()
--------util.mjs(550B)
----.vscode()
--------launch.json(460B)
----.npmignore(55B)
----LICENSE(1KB)
----README.md(3KB)
----tests()
--------simple-test.mjs(1KB)
----.gitignore(60B)
----package.json(1KB)