A npm module to generate Unique ID and GUID for node.
npm install node-unique-id-generator --save
const uidGenerator = require('node-unique-id-generator');
console.log(uidGenerator.generateUniqueId()); // 149897061806898563200922e1443e123
const uidGenerator = require('node-unique-id-generator');
console.log(uidGenerator.generateUniqueId('pre-')); // pre-149897061806898563200922e1443e123
const uidGenerator = require('node-unique-id-generator');
console.log(uidGenerator.generateUniqueId('pre-','-suf')); // pre-149897061806898563200922e1443e123-suf
const uidGenerator = require('node-unique-id-generator');
console.log(uidGenerator.generateUniqueId('','-suf')); // 149897061806898563200922e1443e123-suf
const uidGenerator = require('node-unique-id-generator');
console.log(uidGenerator.generateGUID()); // 5ccf7d01-3553-3e2b-a96e-1200cda69640