Random ID generator
- Generate ids with specific length
- Include characters A-Z, a-z, 0-1
Install
npm i @kherma/id-generator
yarn add @kherma/id-generator
Usage
import randomID from "@kherma/id-generator";
const id1 = randomID(10);
// Example output: e1hmz7rVjF
const id2 = randomID(5);
// Example output: o39To