short-hash-ts
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "short-hash-ts", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Get a quick hash that uses the well-liked Bernstein \"times 33\" hash method and delivers a hex string.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
# short-hash-ts | ||
Get a quick hash that uses the well-liked Bernstein "times 33" hash method and delivers a hex string. | ||
-> 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 | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5743
36