nodejs-simple-uuid

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i nodejs-simple-uuid

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.74 kB

Total Files

5

Last publish

Collaborators

  • evan-moon