Skip to content

feat: CLI #1

@AndersDJohnson

Description

@AndersDJohnson

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

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions