Skip to content

Universal JavaScript K-sortable UUIDs (KSUIDs)

License

Notifications You must be signed in to change notification settings

kylehg/ksuid.js

Repository files navigation

ksuid.js

Universal JavaScript K-sortable UUIDs (KSUIDs)

NB: This is currently a personal-interest project and not meant for broader use, certainly not in a production environment.

TODO

  • basic KSUID, segment version
  • KSUID2 with ms precision
  • basic npm package setup
  • basic test setup
  • Framework for tests with browser (crypto) vs. browser (Math.random()) vs. Node
  • Test cases:
    • General sorting
  • Enhancements (with tests)
    • Bounds checking for date
    • Bounds checking for random part
    • Helpers (see ksuid for inspo)
      • Default string conversion
      • Default comparison
      • Init from strings
      • Init from Date + buffer
      • Init from pure buffer
  • Perf comparison with ksuid package for Node
  • GitHub/CI integration
  • v1

About

Universal JavaScript K-sortable UUIDs (KSUIDs)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published