AndersDJohnson / AndersDJohnson/fetch-paginate
feat: CLI
- 主要语言
- 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 还没有评估数据。