Skip to content

BigInt supportΒ #4

@4kimov

Description

@4kimov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions