# chunkd

> Get a chunk of an array based on the total number of chunks and current index

Latest version **2.0.1** (published 2019-12-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install chunkd
pnpm add chunkd
yarn add chunkd
bun add chunkd
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2019-12-05 |
| First published | 2018-09-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Jamie Kyle |
| Maintainers | thejameskyle |
| Keywords | util, chunk, index, total |

## Links

- npm: https://www.npmjs.com/package/chunkd
- Repository: https://github.com/jamiebuilds/chunkd
- Homepage: https://github.com/jamiebuilds/chunkd#readme
- Issues: https://github.com/jamiebuilds/chunkd/issues
- npm.io page: https://npm.io/package/chunkd

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2019-12-05
- 2.0.0 — 2019-11-20
- 1.0.0 — 2018-09-26

## README

# chunkd

> Get a chunk of an array based on the total number of chunks and current index

## Install

```sh
yarn add [--dev] chunkd
```

## Example

```js
const chunkd = require("chunkd")

chunkd([1, 2, 3, 4], 0, 3) // [1, 2]
chunkd([1, 2, 3, 4], 1, 3) // [3]
chunkd([1, 2, 3, 4], 2, 3) // [4]
```

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