# murmur-32

> MurmurHash3 x86 32-bit implemented in JavaScript.

Latest version **1.0.0** (published 2021-07-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install murmur-32
pnpm add murmur-32
yarn add murmur-32
bun add murmur-32
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-07-24 |
| First published | 2016-08-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 2 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | linusu |
| Keywords | digest, fast, hash, murmur hash, murmur, murmur3, murmurhash, murmurhash3, quick |

## Links

- npm: https://www.npmjs.com/package/murmur-32
- Repository: https://github.com/LinusU/murmur-32
- Homepage: https://github.com/LinusU/murmur-32#readme
- Issues: https://github.com/LinusU/murmur-32/issues
- npm.io page: https://npm.io/package/murmur-32

## Dependencies (2)

- [fmix](https://npm.io/package/fmix.md) ^1.0.0
- [encode-utf8](https://npm.io/package/encode-utf8.md) ^2.0.0

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-07-24
- 0.2.0 — 2020-05-18
- 0.1.0 — 2016-08-16

## README

# MurmurHash3 32-bit

MurmurHash3 x86 32-bit implemented in JavaScript.

## Installation

```sh
npm install --save murmur-32
```

## Usage

```js
import murmur32 from 'murmur-32'

murmur32('linus')
//=> ArrayBuffer { 4 }

murmur32(new ArrayBuffer(10))
//=> ArrayBuffer { 4 }
```

## API

### `murmur32(key)`

- `key` (`ArrayBuffer | string`, required)
- returns `ArrayBuffer`

Compute the 32-bit MurmurHash3 of the supplied `key`. If the `key` is given as a string it will be [encoded using the UTF8 encoding](https://github.com/LinusU/encode-utf8).

## See also

- [murmur-128](https://github.com/LinusU/murmur-128) - MurmurHash3 x86 128-bit implemented in JavaScript

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