1.0.0 • Published 5 years ago

nodejs-simple-uuid v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

nodejs-simple-uuid

nodejs module to generate RFC 4122 UUID v4 simply and fast.

Requires node 8.5.0 of later

Installation

npm install nodejs-simple-uuid

Usage (with CommonJS)

const uuidGenerate = require('nodejs-simple-uuid');

uuidGenerate();
// uuid v4: ad646ef7-58a3-4aef-4d74-61b1062bd786

You can also use a string of characters or numbers as arguments. In this case, x or y will be changed random hex number.

uuidGenerate('xxxx-test-yyyy-0123');
// custom format: 2e7d-test-b9a9-0123