1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-18 05:14:21 -05:00
denoland-deno/std/uuid
Bartek Iwańczuk 8e914be742
build: migrate to dlint (#8176)
This commit migrates repository from using "eslint" 
to "dlint" for linting JavaScript code.
2020-11-03 16:19:29 +01:00
..
_common.ts docs(std/uuid): Added JSdocs for the std/uuid module (#7735) 2020-10-01 11:40:40 +02:00
mod.ts docs(std/uuid): Added JSdocs for the std/uuid module (#7735) 2020-10-01 11:40:40 +02:00
README.md docs(std): version all imports in README (#7442) 2020-10-04 14:18:36 +02:00
test.ts feat(fmt): Sort named import and export specifiers (#7711) 2020-09-27 12:22:32 +02:00
v1.ts build: migrate to dlint (#8176) 2020-11-03 16:19:29 +01:00
v1_test.ts chore: add copyright (#7593) 2020-09-21 08:26:41 -04:00
v4.ts docs(std/uuid): Added JSdocs for the std/uuid module (#7735) 2020-10-01 11:40:40 +02:00
v4_test.ts test(std/uuid): reorganize to use one test module per public module (#7272) 2020-08-30 14:39:51 -04:00
v5.ts docs(std/uuid): creat -> create (#8064) 2020-10-22 14:03:54 +11:00
v5_test.ts test(std/uuid): reorganize to use one test module per public module (#7272) 2020-08-30 14:39:51 -04:00

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);