rnid
v1.1.0
Published
A light (1.6 kB), secure unique string ID generator
Downloads
1
Readme
rnID
A light, secure, unique String ID generator for JavaScript.
- There are four types of IDs that can be selected
- Number of characters can be changed by the user
rnId()
- Uppercase and Lowercase alphabet
- Default Character is 6
rnId(); //AliHOsAn
upId()
- Just Uppercase Alphabet
- Default Character is 6
upId(); // AMIRALIO
lowId()
- Just Lowercase Alphabet
- Default Character is 6
lowId(); // alyazahr
numId()
- Just Numbers
- Default Character is 6
numId(); // 11033125
mxId()
- Number , Alphabet and special character
- Default Character is 16
mxId(); // Lih&56$OKjud#q%a
the ID character can change so easy like
numId(4); // 3895
Quickstart
To create a random rnId
- install
npm i rnid
- Import
import { rnId, upId } from "rnid";
upId();
rnId();