uuidx4-generator
v0.0.2
Published
UUID_GENERATOR is a versatile npm package designed to generate universally unique identifiers (UUIDs) version 4. This package is compatible with any JavaScript framework, making it an essential tool for developers looking to create unique identifiers effo
Downloads
5
Readme
UUID-GENERATOR
UUID_GENERATOR is a versatile npm package designed to generate universally unique identifiers (UUIDs) version 4. This package is compatible with any JavaScript framework, making it an essential tool for developers looking to create unique identifiers effortlessly.
Installation
Use the package manager NPM to install package
npm i uuidx4-generator
Import
Import generateUUID function from uuidx4-generator
import {generateUUID} from "uuidx4-generator"
Using the Component
Just call the generateUUID():
generateUUID()
RESULT:
[ "42818ac9-8ae9-4a2f-ba7b-63a4f566b53e" ]
Function Arguments
generateUUID() takes an argument which is number of id's need to generate
generateUUID(6)
RESULT:
[ "fd7087ca-2807-4f38-8569-2a522fe20b1f",
"5fafe7ba-8538-4b9e-abe9-6b7d7d8f9692",
"7b85185c-0d9b-4916-b298-0ff4d810702d",
"0c2569d7-cd66-42fe-8b7b-a46420592967",
"fbd014da-d699-408d-99f1-7b0cac89cc56",
"3e3b8185-c527-4155-a419-a94ec53ec5b5" ]
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
🚀 About Me
I'm a Frontend Developer... 🚀GitHub Repository