Skip to main content
Deno 2 is finally here 🎉️
Learn more

Deno UUID

UUID library for Deno.

Usage

genuuid

Quickly generate random uuids:

Using deno:

$ deno https://deno.land/x/uuid/genuuid.ts
Downloading https://deno.land/x/uuid/generate.ts...
Downloading https://deno.land/x/uuid/mod.ts...
ca137e5f-575e-4810-8229-80b6468c54fb

$ deno https://deno.land/x/uuid/genuuid.ts 3
36b6520f-3f6c-48df-8554-ec8b9422e942
47e6e147-405a-4b56-8cb6-05e5da7b3fb7
591b143a-ae5a-453a-8875-316fa143ab42

Or install as command via denoget:

$ denoget https://deno.land/x/uuid/genuuid.ts

$ genuuid
19e5ca15-4b1e-4329-87bb-bbb38b61dcd7

Library

For use in other packages, simply import the function:

import { uuid } from " https://deno.land/x/uuid/mod.ts";

const myUUID = uuid();

LICENSE: MIT