github-api:GitHub API节点库,具有分页响应的流式项目和等待的速率限制重置

时间:2021-02-03 05:04:21
【文件属性】:
文件名称:github-api:GitHub API节点库,具有分页响应的流式项目和等待的速率限制重置
文件大小:10KB
文件格式:ZIP
更新时间:2021-02-03 05:04:21
github github-api GitHubAPIJavaScript GitHub API GitHub API的一种实现,它通过等待速率限制重置来处理速率限制命中,并使用异步中介程序跨页面流式传输收集结果。 对于长时间运行的脚本很有用。 安装方式 npm install TomasHubelbauer/github-api 用法 const github = require ( 'github-api' ) ; // `token` can be left `undefined` to use the API with public access rate limits for await ( const repository of github . getUsersUserRepos ( 'TomasHubelbauer' , { token } ) ) { // … } 文献资料 请参见 (自动生成)。 测验 node test
【文件预览】:
github-api-master
----index.js(16KB)
----test.js(2KB)
----package.json(265B)
----.github()
--------workflows()
----package-lock.json(2KB)
----index.d.ts(20KB)
----.gitignore(22B)
----README.md(727B)

网友评论