mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
8e914be742
This commit migrates repository from using "eslint" to "dlint" for linting JavaScript code. |
||
---|---|---|
.. | ||
_common.ts | ||
mod.ts | ||
README.md | ||
test.ts | ||
v1.ts | ||
v1_test.ts | ||
v4.ts | ||
v4_test.ts | ||
v5.ts | ||
v5_test.ts |
UUID
Support for version 1, 4, and 5 UUIDs.
Usage
import { v4 } from "https://deno.land/std@$STD_VERSION/uuid/mod.ts";
// Generate a v4 uuid.
const myUUID = v4.generate();
// Validate a v4 uuid.
const isValid = v4.validate(myUUID);