Skip to content

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

License

Notifications You must be signed in to change notification settings

naim886/short-hash-ts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

npm i short-hash-ts

Usage

Creating a hash string

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%