idgen36radix
v1.0.2
Published
Generate id of specified length in base 36
Downloads
11
Readme
Project Name
Description
This project is aimed at generating random unique IDs using JavaScript. Id collision probability is 1/36^N where N is Your chosen idLength.
Installation
To use this project, follow these steps:
- npm install idgen36radix or yarn add idgen36radix
- import as common js
Usage
To generate a unique ID, simply call the randomId(idLength)
function in your JavaScript code with idLength being character length of id.
const randomId = require("idgen36radix");
const id = randomId(5);
console.log(id);
License
This project is licensed under the MIT License.