@control/uulid

0.0.1 • Public • Published

UUIDv7 & ulid

A simple library to generate binary UUIDv7s and ULIDs.

Usage

const { ULID, UUIDv7, ULIDMonotonicFactory } = require('@control/uulid');

const ulid = new ULID();
const ulid_human = ulid.toString();
const ulid_bytes = ulid.bytes;
const other_ulid_bytes = ULID.generate();

const uuidv7 = new UUIDv7();
const uuidv7_bytes = uuidv7.bytes;
const other_uuidv7_bytes = UUIDv7.generate();

Spec

Fully compliant with specs:

Next steps

  • Implement in Rust with JS bindings for performance
  • Unroll quintets manually to prevent byte loops

/@control/uulid/

    Package Sidebar

    Install

    npm i @control/uulid

    Weekly Downloads

    2

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    21.1 kB

    Total Files

    9

    Last publish

    Collaborators

    • jsmrcaga