s-private API Documentation - v3.8.1
    Preparing search index...
    idGenerator: { uuidv7: () => string } = ...

    ID generator service for creating unique identifiers.

    Type Declaration

    • uuidv7: () => string

      Generates a new UUIDv7 identifier.

      UUIDv7 is a time-ordered UUID that provides both uniqueness and sortability. The timestamp is embedded in the first 48 bits, making it suitable for database primary keys where insertion order matters.

      const id = uuidv7();
      // "01912c9a-5e8a-7b5c-8a1b-2c3d4e5f6a7b"

    Provides a centralized service for generating identifiers. Currently only supports UUIDv7.

    import { idGenerator } from "@s-hirano-ist/s-core";

    const id = idGenerator.uuidv7();