# @tobinbc/chunker

> Tiny function to split an array into chunks, returned as an array of arrays

Latest version **1.1.1** (published 2019-12-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tobinbc/chunker
pnpm add @tobinbc/chunker
yarn add @tobinbc/chunker
bun add @tobinbc/chunker
```

## 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.1.1 |
| Published | 2019-12-11 |
| First published | 2019-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 176.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tobin Chew |
| Maintainers | tobinbc |
| Keywords | chunk, array, aws, sdk, split |

## Links

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

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2019-12-11
- 1.1.0 — 2019-12-11
- 1.0.1 — 2019-12-11
- 1.0.0 — 2019-12-11

## README

# Chunker
Very simple package to turn an array into typed chunks.

```
    import { chunker } from '@tobinbc/chunker'

    const input = [
        1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
    ];
    let output = chunker<typeof input[0]>(input, 3)
    let expected = [
        [1, 2, 3],
        [4, 5, 6],
        [7, 8, 9],
        [10, 11]
    ]
```

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