Skip to content

Shorten a string with crc32 and radix.

Notifications You must be signed in to change notification settings

hustcc/string-shorten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published