function ulid
ulid(seedTime?: number): stringGenerate a ULID, optionally based on a given timestamp.
Examples
Example 1
Example 1
import { ulid } from "@std/ulid"; ulid(); // 01ARZ3NDEKTSV4RRFFQ69G5FAV // You can also input a seed time which will consistently give you the same string for the time component ulid(1469918176385); // 01ARYZ6S41TSV4RRFFQ69G5FAV
Parameters
optional
seedTime: number