uuid4

Node UUID v4 Generator

Usage no npm install needed!

<script type="module">
  import uuid4 from 'https://cdn.skypack.dev/uuid4';
</script>

README

uuid4

A Node.js module for generating and validation V4 UUIDs

NOTE: as of Version 2, legacy browsers are no longer supported, you can keep using 1.x if you need to support modern and legacy browsers.

Install

$ npm install uuid4

Usage

import uuid4 from "uuid4";

// Generate a new UUID
var id = uuid4();

// Validate a UUID as proper V4 format (case-insensitive)
uuid4.valid(id); // true

License

ISC License