3.0.27 • Published 3 months ago

@visulima/pagination v3.0.27

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

typescript-image npm-image license-image



Features

Installation

npm install @visulima/pagination
yarn add @visulima/pagination
pnpm add @visulima/pagination

Usage

import { paginate } from "@visulima/pagination";

const items = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

const pagination = paginate(1, 5, items.length, items);

console.log(pagination);
// {
//   data: [1, 2, 3, 4, 5],
//   meta: {
//     total: 10,
//     perPage: 5,
//     page: 1,
//     lastPage: 2,
//     firstPage: 1,
//     firstPageUrl: "/?page=1",
//     lastPageUrl: "/?page=2",
//     nextPageUrl: "/?page=2",
//     previousPageUrl: null,
//   }
// }

Supported Node.js Versions

Libraries in this ecosystem make the best effort to track Node.js’ release schedule. Here’s a post on why we think this is important.

Contributing

If you would like to help take a look at the list of issues and check our Contributing guild.

Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Credits

License

The visulima pagination is open-sourced software licensed under the MIT

typescript-url: https://www.typescriptlang.org/ "TypeScript" "typescript"

3.0.27

3 months ago

3.0.26

5 months ago

3.0.25

5 months ago

3.0.24

6 months ago

3.0.23

8 months ago

3.0.22

9 months ago

3.0.21

9 months ago

3.0.20

9 months ago

3.0.19

9 months ago

3.0.18

11 months ago

3.0.17

11 months ago

3.0.16

1 year ago

3.0.15

1 year ago

3.0.14

1 year ago

3.0.13

1 year ago

3.0.12

1 year ago

3.0.11

1 year ago

2.0.5

2 years ago

2.0.6

2 years ago

3.0.9

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.10

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.0

2 years ago

2.0.3

2 years ago

2.0.4

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago