Open 4kimov opened 1 year ago
Right now max value is Number.MAX_SAFE_INTEGER, with no support for bigints. This is an issue for tracking this feature. Hashids has support for it here (for reference): https://github.com/niieani/hashids.js/blob/master/src/hashids.ts
Number.MAX_SAFE_INTEGER
Todos:
encode()/decode()
maxValue()
+1 this is useful if you need to do something like convert a uuid to a sqid
+1 also required for Mongo Object IDs
Right now max value is
Number.MAX_SAFE_INTEGER
, with no support for bigints. This is an issue for tracking this feature. Hashids has support for it here (for reference): https://github.com/niieani/hashids.js/blob/master/src/hashids.tsTodos:
encode()/decode()
maxValue()