# fnv1a

> Simple 32 bit FNV-1a hash algorithm implementation.

Latest version **1.1.1** (published 2022-04-03) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2022-04-03 |
| First published | 2015-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Schwarzkopf Balazs |
| Maintainers | schwarzkopfb |
| Keywords | hash, fnv, fnv1a, algorithm |

## Links

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

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2022-04-03
- 1.1.0 — 2022-04-03
- 1.0.1 — 2015-11-17
- 1.0.0 — 2015-11-17

## README

[![view on npm](http://img.shields.io/npm/v/fnv1a.svg?style=flat-square)](https://www.npmjs.com/package/fnv1a)
[![npm module downloads per month](http://img.shields.io/npm/dm/fnv1a.svg?style=flat-square)](https://www.npmjs.com/package/fnv1a)
[![node version](https://img.shields.io/badge/node->=8-brightgreen.svg?style=flat-square)](https://nodejs.org/download)
[![license](https://img.shields.io/npm/l/tesseractocr.svg?style=flat-square)](https://github.com/schwarzkopfb/fnv1a/blob/master/LICENSE)

# fnv1a

Simple and fast 32 bit FNV-1a hash for [node.js](http://nodejs.org) based on [this](http://isthe.com/chongo/tech/comp/fnv/).

## Usage

```js
import { equal } from 'assert'
import hash from 'fnv1a'

const value = hash('node.js')

// decimal
equal(value, 3096844302)

// hexadecimal
equal(value.toString(16), 'b896180e')

// string
equal(value.toString(36), '1f7s4cu')
```

_Note:_ importing via `require()` is also supported.

## Installation

    npm install fnv1a

## License

[MIT license](https://github.com/schwarzkopfb/fnv1a/blob/master/LICENSE).

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