uniqid-generator
v1.0.0
Published
Generate GUID, nanoId,OTP number string
Downloads
64
Readme
Unique ID Generation Module
This is a Node.js module for generating unique IDs. It includes the following functions:
nanoid()
: Generates a string of random characters of default length 21. It can also generate strings of specified custom lengths.uuid()
: Generates a valid UUID string.otp()
: Generates a one-time password (OTP) string of default length 6. It can also generate strings of specified custom lengths.
The IDs generated by this module are unique and can be used for a variety of purposes such as creating unique identifiers for objects, creating temporary passwords, etc.