Skip to content

gggauravgandhi/uuid-extra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uuid-extra

Build Status

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.

About

Uniqueness and Randomness combined

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published