# short-hash-ts

> Get a quick hash that uses the well-liked Bernstein "times 33" hash method and delivers a hex string.

Latest version **1.0.2** (published 2022-09-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install short-hash-ts
pnpm add short-hash-ts
yarn add short-hash-ts
bun add short-hash-ts
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-09-07 |
| First published | 2022-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Younis Rahman |
| Maintainers | younisrahman |
| Keywords | hash, hash-ts, short-hash, short-hash-ts, shorthash, shorthash-ts |

## Links

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

## 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.0.2 (latest) — 2022-09-07
- 1.0.1 — 2022-09-02
- 1.0.0 — 2022-09-02

## README

# short-hash-ts

-> Get a quick hash that uses the well-liked Bernstein "times 33" hash method and delivers a hex string.

## Installation

Install `short-hash-ts` using [npm](https://www.npmjs.com/):

```bash
npm i short-hash-ts
```


## Usage

#### Creating a hash string 

```javascript
import shorthash from 'short-hash-ts';
OR
var shorthash = require('short-hash-ts');


console.log(shorthash.unique('name'));
// you will get: eQEF

console.log(shorthash.unique('https://younisrahman.com/'));
// you will get: Z10i5MF

console.log(shorthash.unique('The quick brown fox jumps over the lazy dog'));
// you will get: ZI0UJg

console.log(shorthash.unique('আমি বাংলা বলতে পারি'));
// you will get: Z2tKMTX

```

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