Platform
Resources
Pricing
Sign in
Get started
Christopher Dieringer
Workspace
Fork
Published
By
Christopher Dieringer
Edited
Apr 3, 2022
Fork of
Import deno modules into the browser with esm_emit_server
Insert cell
Insert cell
uuid
=
await
import
(
'https://esmserver.cdaringe.com/github/denoland/deno_std/main/uuid/mod.ts'
)
Insert cell
myUUID
=
{
// Copy the example direct from deno_std UUID readme
// https://deno.land/std@0.130.0/uuid#generate-and-validate-a-v5-sha-1-digest-uuid
const
data
=
new
TextEncoder
(
)
.
encode
(
"Hello World!"
)
;
// Generate a v5 UUID using a namespace and some data.
const
myUUID
=
await
uuid
.
v5
.
generate
(
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
,
data
)
;
return
myUUID
}
Insert cell
`Is UUID valid?: ${
uuid
.
v5
.
validate
(
myUUID
)
}`
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
uuid
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
myUUID
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML