# pretty-hash

> Output binary buffers as a nice shortened hex string

Latest version **1.0.1** (published 2016-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install pretty-hash
pnpm add pretty-hash
yarn add pretty-hash
bun add pretty-hash
```

## 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.1 |
| Published | 2016-11-22 |
| First published | 2016-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 28 |
| Author | Paul Frazee |
| Maintainers | pfraze |
| Keywords | buffer, hex, hash |

## Links

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

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-11-22
- 1.0.0 — 2016-11-17

## README

# pretty-hash

Output binary buffers as a nice shortened hex string

```js
var prettyHash = require('pretty-hash')
var crypto = require('crypto')

prettyHash(crypto.randomBytes(32)) // => '0b0a97..f3'
prettyHash(crypto.randomBytes(16)) // => '0b0395..8a'
prettyHash(crypto.randomBytes(4)) // => '49ab09ed'
prettyHash(crypto.randomBytes(1)) // => 'f8'
prettyHash('not a hash') // => 'not a hash'
```

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