# murmur2-partitioner

> This JS-script calculates the partition based on a key and the amount of partitions for a JS Kafka producer in way consistent to the default Java Kafka client

Latest version **1.0.0** (published 2017-11-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install murmur2-partitioner
pnpm add murmur2-partitioner
yarn add murmur2-partitioner
bun add murmur2-partitioner
```

## 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 | 1.0.0 |
| Published | 2017-11-27 |
| First published | 2017-11-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | vuza |
| Maintainers | vuza |
| Keywords | murmur2, kafka, javascript, partitioning |

## Links

- npm: https://www.npmjs.com/package/murmur2-partitioner
- Repository: https://github.com/vuza/murmur2-partitioner
- Homepage: https://github.com/vuza/murmur2-partitioner#readme
- Issues: https://github.com/vuza/murmur2-partitioner/issues
- npm.io page: https://npm.io/package/murmur2-partitioner

## Dependencies (1)

- [murmur-hash-js](https://npm.io/package/murmur-hash-js.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2017-11-27

## README

# murmur2 Partitioner

This JS-script calculates the partition based on a key and the amount of partitions for a JS Kafka producer in way consistent to the default Java Kafka client.

## Install it
```
npm install
```

## Test it
```
npm test
```

## Use it
```
const partitioner = require('path/to/index')
partitioner.partition('key', 5) // Second parameter being the total number of partitions
```

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