2.0.0 • Published 2 years ago

generate-uuid.js v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

generate-uuid.js

About

This is a npm package that can generate a v4 uuid through 1 simple function.

Installation

npm i generate-uuid.js

Example

After installing the package you can finally write some code! First you'll have to require the package.

const generateUUID = require("generate-uuid.js");

Then just run the function and it will generate a v4 UUID for you!

generateUUID();

Now to demonstrate that it works you can log it.

console.log(generateUUID());

Final code will look something like this:

const generateUUID = require("generate-uuid.js");
console.log(generateUUID());

Final output will look something like this:

m9lfjxx9-ugz8-ra5g-lfpo-q95rhtp9aei5

Or this:

jw6y36zo-y0zh-gghl-tom2-583tlexeip4p

It's as easy as that!

Help

If you need help or you've found a bug feel free to create an issue on GitHub