A lightweight utility for generating and formatting random Version 4 UUIDs without dashes, providing a simple and clean unique identifier.
- Generates Version 4 UUIDs.
- Removes dashes for a more compact ID format.
- Lightweight and easy to integrate.
Install the package via npm:
npm install uuid-lite
To generate a UUID, import the package and call the generateId() function:
const { generateId } = require('uuid-lite');
// Generate a standard UUID
const uuid = generateId();
console.log(uuid); // Example output: '550e8400e29b41d4a716446655440000'
This project is licensed under the MIT License.