generateRandomString
Generates a random string based on the given options.
- import the method
import { generateRandomString } from "nodelpers";
- params
options: TRandomStringOptions;
TRandomStringOptions = {
length?: number;
allowedChars?: Set<TAllowedChar>;
};
TAllowedChar = "number" | "alphabet" | "special";
- usage
generateRandomString(); // random string