🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

nodejs-simple-uuid

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodejs-simple-uuid

nodejs module to generate uuid v4 simply

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

node

FAQs

Package last updated on 01 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts