sqids-javascript icon indicating copy to clipboard operation
sqids-javascript copied to clipboard

BigInt support

Open 4kimov opened this issue 10 months ago • 1 comments

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:

  • [ ] Support in encode()/decode()
  • [ ] Adjust maxValue()
  • [ ] Add tests specifically for bigints
  • [ ] Add an example of how to use bigints

4kimov avatar Aug 27 '23 23:08 4kimov