0.2.0 • Published 4 years ago

ksuid.js v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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