Visulima pagination is a simple pagination for node.
Daniel Bannert's open source work is supported by the community on GitHub Sponsors
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);
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