sqids / sqids-javascript

Official JavaScript port of Sqids. Generate short unique IDs from numbers.
https://sqids.org/javascript
MIT License
678 stars 14 forks source link

BigInt support #4

Open 4kimov opened 1 year ago

4kimov commented 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

Todos:

phillipb commented 12 months ago

+1 this is useful if you need to do something like convert a uuid to a sqid

nathanclevenger commented 5 months ago

+1 also required for Mongo Object IDs