littlehash
v1.0.1
Published
Generate a unique hash based on a long string
Downloads
8
Readme
littlehash
Transform a long string into a unique, little and convenient hash.
Based on the abandoned library shorthash.
Supports CJS, ESM and includes TypeScript declarations
Install
# npm
$ npm install littlehash
# Yarn
$ yarn add littlehash
# pnpm
$ pnpm add littlehash
Usage
import littlehash from "littlehash";
littlehash('[email protected]');
// => Z1bL2tE
littlehash('my name is really big big and big...');
// => Z1TirWS
littlehash('万里长城永不倒。。。');
// => 2r6EFF
littlehash('和平');
// => 33NM