1.0.2 • Published 1 year ago

simpleids v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Random Id Generator

Use the function to generate random ids. The function should be called in the following way:

const {getId} = require("simpleids");

const id = getId("s","n","b","c",10);

The id will be as "AYtx346'

The array will represent all the types of values required in the id:

Types

s = Refers small letters n = Refers to all the nums b = Refers to all letters in capital format c = Refers to special characters.

Checks

Please enter only one selection of each type and do not repeat the type. Put the length of the id required in integer format. Always check the type of characters array is always small than the required id length.