# @bunchtogether/hash-object

> [Hash Object](https://github.com/bunchtogether/hash-object) [![CircleCI](https://circleci.com/gh/bunchtogether/hash-object/tree/master.svg?style=svg)](https://circleci.com/gh/bunchtogether/hash-object/tree/master) [![npm version](https://badge.fury.io/js/

Latest version **1.0.7** (published 2022-02-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bunchtogether/hash-object
pnpm add @bunchtogether/hash-object
yarn add @bunchtogether/hash-object
bun add @bunchtogether/hash-object
```

## 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.7 |
| Published | 2022-02-01 |
| First published | 2019-03-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 338.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | John Wehr |
| Maintainers | bunchtogether |

## Links

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

## Dependencies (1)

- [farmhash](https://npm.io/package/farmhash.md) ^3.2.2

## Recent versions

- 1.0.7 (latest) — 2022-02-01
- 1.0.6 — 2022-02-01
- 1.0.5 — 2022-02-01
- 1.0.4 — 2022-02-01
- 1.0.3 — 2020-01-03
- 1.0.2 — 2019-03-17
- 1.0.1 — 2019-03-17
- 1.0.0 — 2019-03-17

## README

# Hash Object

[Hash Object](https://github.com/bunchtogether/hash-object) [![CircleCI](https://circleci.com/gh/bunchtogether/hash-object/tree/master.svg?style=svg)](https://circleci.com/gh/bunchtogether/hash-object/tree/master) [![npm version](https://badge.fury.io/js/%40bunchtogether%2Fhash-object.svg)](http://badge.fury.io/js/%40bunchtogether%2Fhash-object) [![codecov](https://codecov.io/gh/bunchtogether/hash-object/branch/master/graph/badge.svg)](https://codecov.io/gh/bunchtogether/hash-object)

Performant object hashing. Supports native maps, sets, classes, and typed arrays.

```js
const { hash64, hash32 } = require('@bunchtogether/hash-object');

const a = hash64({a:1, b:2});
// typeof a === 'string'

const b = hash32([1,2,3]);
// typeof b === 'number'
```

## Install

`yarn add @bunchtogether/hash-object`

## Benchmarks

### Complex Values

[hash-object](https://www.npmjs.com/package/hash-object)

*   Time: 1244ms (+409.84%)
*   Heap: 226Mb (+17.2%)

[node-object-hash](https://www.npmjs.com/package/node-object-hash)

*   Time: 663ms (+171.72%)
*   Heap: 220Mb (+13.86%)

[hash-it](https://www.npmjs.com/package/hash-it)

*   Time: 927ms (+279.92%)
*   Heap: 239Mb (+23.66%)

[@bunchtogether/object-hash](https://www.npmjs.com/package/@bunchtogether/hash-object)

*   Time: 244ms (+0%)
*   Heap: 193Mb (+0%)

### Simple Values

[hash-object](https://www.npmjs.com/package/hash-object)

*   Time: 92ms (+8.24%)
*   Heap: 195Mb (+3.81%)

[node-object-hash](https://www.npmjs.com/package/node-object-hash)

*   Time: 99ms (+16.47%)
*   Heap: 196Mb (+4.41%)

[hash-it](https://www.npmjs.com/package/hash-it)

*   Time: 184ms (+116.47%)
*   Heap: 219Mb (+16.42%)

[@bunchtogether/object-hash](https://www.npmjs.com/package/@bunchtogether/hash-object)

*   Time: 85ms (+0%)
*   Heap: 188Mb (+0%)

## API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

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