# @diffrag/pagination

> Pagination Library

Latest version **1.0.9** (published 2023-06-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install @diffrag/pagination
pnpm add @diffrag/pagination
yarn add @diffrag/pagination
bun add @diffrag/pagination
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2023-06-28 |
| First published | 2022-04-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | sejun |
| Maintainers | revealations, untaek, sejun |

## Links

- npm: https://www.npmjs.com/package/@diffrag/pagination
- Repository: https://github.com/diffrag0/pagination
- Homepage: https://github.com/diffrag0/pagination#readme
- Issues: https://github.com/diffrag0/pagination/issues
- npm.io page: https://npm.io/package/@diffrag/pagination

## Recent versions

- 1.0.9 (latest) — 2023-06-28
- 0.1.1-alpha.0 (alpha) — 2022-05-04
- 1.0.8 — 2023-02-03
- 1.0.7 — 2022-05-24
- 1.0.6 — 2022-05-06
- 1.0.5 — 2022-05-04
- 0.1.0-alpha.0 — 2022-05-04
- 1.0.4 — 2022-04-28
- 1.0.3 — 2022-04-28
- 1.0.2 — 2022-04-28
- 1.0.1 — 2022-04-15
- 1.0.0 — 2022-04-15

## README

[![npm version](https://badge.fury.io/js/@diffrag%2Fpagination.svg)](https://badge.fury.io/js/@diffrag%2Fpagination)

# @diffrag/pagintation

A Simple Pagination Library For Nodejs

## Table of Contents

- [Installing](#Installing)
- [Example](#Example)

## Installing

Using npm:

```
$ npm install @diffrag/pagination
```

## Example

```javascript
import { pagination } from "@diffrag/pagination";
```

```javascript
const pages = pagination({
  limit: 10,
  totalItemCount: 200
  pageLimit: 5,
  page: 5,
})
// return
// [1,2,3,4,5]
```

---
_Source: https://npm.io/package/@diffrag/pagination · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
