UNPKG

id-shorter

Version:

A little module that replaces a long ObjectId value with short one keeping uniqueness. A charset for conversion is fully configurable and does not depend on requirement of 64 symbols. So it is possible to use only letters, letters+digits, digits etc.

6 lines (5 loc) 260 B
0.1.0 / 2015-12-03 ================== + decode method added that allows reverse decoding for reversible generated ids * docs updated for decode method - removed old API that allowed to modify previously created ShortId. Now only constructor can set params