1.0.5 • Published 4 years ago
rid.js v1.0.5
Table Of Contents
About
rid.js
is a lightweight package that allows you to generate IDs. The IDs can be any length (as long as it's not 0).
It's simple to use, and new features are being added!
Examples
const id = require('rid.js');
const generatedID = id.generate("all", 10) // "all" is a type. The "all" type generates IDs with letters, numbers, and symbols.
console.log(generatedID);
//Output: P?i*OY74&C
//The output will be different for you.
Types
Type | Description |
---|---|
"all" | Generates an ID with letters, numbers, and symbols. |
"letter" | Generates an ID with only letters. |
"letterAndSymbol" | Generates an ID with just letters and symbols. |
"number" | Generates an ID with only numbers. |
"numberAndLetter" | Generates an ID with just numbers and letters. |
"numberAndSymbol" | Generates an ID with just numbers and symbols. |
"symbol" | Generates an ID with only symbols. |