regex-randstr
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Regex String Generator (TypeScript)

A simple tool to generate random strings based on a given regular expression pattern using TypeScript.

Installation

Using npm

npm install regex-randstr

Using yarn

yarn add regex-randstr

Usage

import { randString } from 'regex-randstr';

const randomString = randString('^[A-Za-z0-9]{5}$');
console.log(randomString); // Outputs a random 5-character alphanumeric string

License

This plugin is licensed under the MIT License. See the LICENSE file for more information.

Package Sidebar

Install

npm i regex-randstr

Weekly Downloads

1,553

Version

0.0.6

License

MIT

Unpacked Size

11.7 kB

Total Files

7

Last publish

Collaborators

  • dulajdeshan