Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "uuid4", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Node UUID v4 Generator", | ||
@@ -8,4 +8,4 @@ "main": "index.js", | ||
"browser": { | ||
"./index.js": "browser.js", | ||
"./index.mjs": "browser.mjs" | ||
"./index.js": "./browser.js", | ||
"./index.mjs": "./browser.mjs" | ||
}, | ||
@@ -28,2 +28,2 @@ "repository": { | ||
"homepage": "https://github.com/tracker1/node-uuid4" | ||
} | ||
} |
@@ -26,4 +26,27 @@ # uuid4 | ||
### Direct in Browser or Deno | ||
``` | ||
import uuid4 from 'https://cdn.jsdelivr.net/gh/tracker1/node-uuid4/browser.mjs'; | ||
// or | ||
const { default: uuid4 } = await import('https://cdn.jsdelivr.net/gh/tracker1/node-uuid4/browser.mjs') | ||
``` | ||
### Deno | ||
Use the canonical implementation instead. | ||
``` | ||
import { v4 as uuid4 } from "https://deno.land/std/uuid/mod.ts"; | ||
const id = uuid4.generate(); | ||
console.log(id); | ||
console.log(uuid4.validate(id)); | ||
``` | ||
## License | ||
ISC License |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4406
8
64
52