A simple tool to generate random strings based on a given regular expression pattern using TypeScript.
Using npm
npm install regex-randstr
Using yarn
yarn add regex-randstr
import { randString } from 'regex-randstr';
const randomString = randString('^[A-Za-z0-9]{5}$');
console.log(randomString); // Outputs a random 5-character alphanumeric string
This plugin is licensed under the MIT License. See the LICENSE file for more information.