Get started with node-uuid CDN

MIT licensed

Node-uuid: Lightweight library for generating RFC 4122 v1, 3, 4 UUIDs.

Tags:
  • guid
  • rfc4122
  • uuid

Stable version

Copied!

How to start using node-uuid CDN


// Include the CDN link for node-uuid package
const uuid = require('uuid');

// Generate a new v4 UUID
const newUuid = uuid.v4();
console.log('New UUID:', newUuid);

// Generate an array of 5 random UUIDs
const uuids = [];
for (let i = 0; i < 5; i++) {
  uuids.push(uuid.v4());
}
console.log('Five new UUIDs:', uuids);
Copied!
Copied!
Copied!

All versions