--- title: "@std/ulid" description: "Generation of Universally Unique Lexicographically Sortable Identifiers (ULIDs)" jsr: jsr:@std/ulid pkg: ulid version: 1.0.0 generated: true stability: stable --- ## Overview
Utilities for generating and working with Universally Unique Lexicographically Sortable Identifiers (ULIDs).
To generate a ULID use the ulid function. This will generate a
ULID based on the current time.
ulid does not guarantee that the ULIDs will be strictly
increasing for the same current time. If you need to guarantee that the ULIDs
will be strictly increasing, even for the same current time, use the
monotonicUlid function.
Because each ULID encodes the time it was generated, you can extract the
timestamp from a ULID using the decodeTime function.