uuid-extra
v1.0.7
Published
Uniqueness and Randomness combined
Downloads
12
Maintainers
Readme
uuid-extra
Uniqueness and Randomness combined
Using UUID library, combining Uniqueness(uuidv1) and Randomness(uuidv4), trying to get randomly unique solution to generate universally unique identifier.
Install
NPM
npm install uuid-extra
how to use
ex14()
First extra function which combines the uuidv1
and uuidv4
output and uses Math.random
for selecting bits and generates
const uuidex = require('uuid-extra');
console.log(`EX14: ${uuidex.ex14()}`);
v1()
Original uuidv1
function
const uuidex = require('uuid-extra');
console.log(`V1: ${uuidex.v1()}`);
v4()
Original uuidv4
function
const uuidex = require('uuid-extra');
console.log(`V4: ${uuidex.v4()}`);
Note: All the credits goes to original UUID [Github, NPM] for such useful module.