AndersDJohnson / AndersDJohnson/fetch-paginate

feat: CLI

未关闭
#1 0 条评论 0 个 reaction 已指派 1 人 已被 @AndersDJohnson 认领 在 GitHub 查看
enhancement hacktoberfest
主要语言
TypeScript
星标
27
派生
3
平均合并
1 分钟
30 天内合并 PR
2

描述

`fetch-paginate https://api.example.com/things`

To use page mode (default behavior, with default param name `page`):
`fetch-paginate --page https://api.example.com/things`
Or with custom page param name `pg`:
`fetch-paginate --page pg https://api.example.com/things`

---

Otherwise, to use offset/limit mode (with default param name `offset` and `limit`):
`fetch-paginate --offset https://api.example.com/things`

Or with custom param names `count` and `max`:
`fetch-paginate --offset count --limit max https://api.example.com/things`

---

Also, with custom path specifying how to get items list from a page of response data:
`fetch-paginate --items data.items oohttps://api.example.com/things`

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。