1.0.1 • Published 2 years ago
littlehash v1.0.1
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('foobar@example.com');
// => Z1bL2tE
littlehash('my name is really big big and big...');
// => Z1TirWS
littlehash('万里长城永不倒。。。');
// => 2r6EFF
littlehash('和平');
// => 33NM