Decodificar ULID
ulid-decodeValida un ULID y extrae su marca de tiempo y la parte aleatoria. Cuándo: hay que generar un identificador en este formato o leer los campos que lleva dentro. No para: validar un UUID e informar versión, variante y la marca de tiempo en v1, v6 y v7 (uuid-inspect). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Validates a ULID and extracts its timestamp (ms and ISO 8601) and the hex of its 80-bit random part. When: an identifier has to be generated in this format or its embedded fields decoded. Not for: validating a UUID string and reporting version, variant, and the embedded timestamp for v1, v6 and v7 (uuid-inspect). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ulid | Yes | ULID (string; required; up to 40 chars). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | No | ||
| timestamp | No | ||
| random_hex | No | ||
| timestamp_ms | No |