Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Share On Stumbleupon
Contact us
Hide Buttons

nodejs: generate uuid / guid

node-uuid pro­vide a sim­pler and reli­able way to cre­ate unique id. It is rig­or­ous imple­men­ta­tion of RFC4122 (v1 and v4) UUIDs.


// npm i node-uuid var uuid = require('node-uuid'); // Generate a v1 (time-based) id uuid.v1(); // Generate a v4 (random) id uuid.v4();

You may also like...