valibot-schema-ulid
Version:
Valibot schema for Universally Unique Lexicographically Sortable Identifiers (ULID)
32 lines (21 loc) • 1.18 kB
Markdown
# valibot-schema-ulid
> Valibot schema for [Universally Unique Lexicographically Sortable Identifiers](https://github.com/ulid/spec).
[](https://github.com/idleberg/valibot-schemas/blob/main/LICENSE)
[](https://www.npmjs.org/package/valibot-schema-ulid)
[](https://jsr.io/@idleberg/valibot-schema-ulid)
[](https://github.com/idleberg/valibot-schemas/actions/workflows/node.yml)
## Installation
```shell
# NodeJS
npm install valibot-schema-ulid
# Deno
deno add jsr:@idleberg/valibot-schema-ulid
```
## Usage
```javascript
import { parse } from "valibot";
import { ulid } from "valibot-schema-ulid";
const output = parse(ulid(), "01ARZ3NDEKTSV4RRFFQ69G5FAV");
```
## License
This work is licensed under [The MIT License](LICENSE).