Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 969 Bytes

README.md

File metadata and controls

31 lines (16 loc) · 969 Bytes

string-shorten

Shorten a string with crc32 and radix. Try online.

Build Status Coverage Status npm npm download

Usage

npm i --save string-shorten

var shorten = require('string-shorten');

shorten('世界,你好'); // 'oTM]^'

shorten('Shorten a string with crc32 and radix.'); // 'e:::%'

Warning: base on crc32 algorithm which has collision probability: 216555 english words, 2 collisions.

License

MIT@hustcc.