node-unique-id-generator
A npm module to generate Unique ID and GUID for node.
Table of Contents
Installation
npm install node-unique-id-generator --save
How to use
Generate Unique ID
Unique ID with no prefix or suffix
const uidGenerator = ;console; // 149897061806898563200922e1443e123
Unique ID with prefix
const uidGenerator = ;console; // pre-149897061806898563200922e1443e123
Unique ID with prefix and suffix
const uidGenerator = ;console; // pre-149897061806898563200922e1443e123-suf
Unique ID with suffix
const uidGenerator = ;console; // 149897061806898563200922e1443e123-suf
Generate GUID
const uidGenerator = ;console; // 5ccf7d01-3553-3e2b-a96e-1200cda69640