A lightweight and easy library to generate random UUIDs.
npm install giuuid
yarn add giuuid
ES6+ Module syntax:
import uuid from 'giuuid';
uuid(); // ebce62b2-73b1-3b0a-8afb-4150a0c2c666
CommonJS syntax:
const uuid = require('giuuid');
uuid(); // 101ec79f-621e-3bf0-903d-6a6d79e81be6