1.0.3 • Published 3 years ago

@sqrtthree/pagination v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

pagination

npm

Some helpers about pagination.

Install

yarn add @sqrtthree/pagination

# OR use npm
npm install @sqrtthree/pagination

How to usage

paginate(data, options?: {page?: boolean, offset?: boolean, maxPerPage?: number, maxLimit?: number })

@return { page: number = 1, perPage: number = 10, offset: number = 0, limit: number = 10 }

paginateWithCursor(data, options?: { maxLimit?: number })

@return { cursor: string | number, limit: number = 10 }


sqrtthree.com  ·  GitHub @sqrthree  ·  Twitter @sqrtthree

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago