bun-generate-a-uuid

star 5

Generate a UUID

jarle By jarle schedule Updated 2/21/2026

name: Bun Generate a UUID description: Generate a UUID

Generate a UUID

Use crypto.randomUUID() to generate a UUID v4. This API works in Bun, Node.js, and browsers. It requires no dependencies.

crypto.randomUUID();
// => "123e4567-e89b-42d3-a456-426614174000"

In Bun, you can also use Bun.randomUUIDv7() to generate a UUID v7.

Bun.randomUUIDv7();
// => "0196a000-bb12-7000-905e-8039f5d5b206"

See Docs > API > Utils for more useful utilities.

Install via CLI
npx skills add https://github.com/jarle/bun-skills --skill bun-generate-a-uuid
Repository Details
star Stars 5
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator