Skip to main content

@std/ulid@0.215.0

latest
Works with
It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun
It is unknown whether this package works with Browsers
It is unknown whether this package works with Deno
It is unknown whether this package works with Node.js
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score76%
Published2 years ago (0.215.0)
default

Utilities for generating and working with Universally Unique Lexicographically Sortable Identifiers (ULIDs).

Functions

f
decodeTime(id: string): number

Extracts the timestamp given a ULID.

f
ulid(seedTime?: number): string

Generate a ULID, optionally based on a given timestamp.

Type Aliases

T
ULID = (seedTime?: number) => string

Type for a ULID generator function.

Variables

v

Generate a monotonically increasing ULID, optionally based on a given timestamp.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/ulid

Import symbol

import * as ulid from "@std/ulid";
or

Import directly with a jsr specifier

import * as ulid from "jsr:@std/ulid";