# arpa-js

> Arpa is Array Pagination

Latest version **0.1.3** (published 2021-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install arpa-js
pnpm add arpa-js
yarn add arpa-js
bun add arpa-js
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2021-10-18 |
| First published | 2021-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | firmnardians |
| Maintainers | firmnardians |
| Keywords | Array, Pagination, Array Pagination |

## Links

- npm: https://www.npmjs.com/package/arpa-js
- npm.io page: https://npm.io/package/arpa-js

## Recent versions

- 0.1.3 (latest) — 2021-10-18
- 0.1.2 — 2021-10-18
- 0.1.1 — 2021-10-18
- 0.1.0 — 2021-10-16

## README

# Arpa

Arpa is Array Pagination for Javascript Project. Can be used for backend and frontend.

-   Easy to use
-   Lightweight

## Install

To install Arpa

```bash
  npm i arpa-js --save
```

## Usage

Already tested on express and react projects

| Parameter | Type     | Description                       |
| :-------- | :------- | :-------------------------------- |
| `data`    | `array`  | **Required**. Your data array     |
| `limit`   | `number` | **Required**. Array limit of page |
| `page`    | `number` | **Required**. Page of pagination  |

```javascript
import arpa from 'arpa-js';

const array = [
	{
		id: 1,
		title: 'yellow',
		body: 'yellow body',
	},
	{
		id: 2,
		title: 'blue',
		body: 'blue body',
	},
	{
		id: 3,
		title: 'green',
		body: 'green body',
	},
	{
		id: 4,
		title: 'black',
		body: 'black body',
	},
];

const example = arpa({ data: array, limit: 2, page: 1 });
console.log(example);
```

## Authors

-   [@firmnardians](https://github.com/firmnardians)

## License

[MIT](https://choosealicense.com/licenses/mit/)

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