handsome-char
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

generate string as you like, only English letters and Numbers supported

Usage

npm install handsome-char --save
import handsomeChar from 'handsome-char';
var str1 = handsomeChar('1-5|(2-9)^2|(3*7)^5|a-d|(c-e)^6|(d*g)^5|A-D|(C-E)^6|(D*G)^5');
var str2 = handsomeChar('20');

Rule

NOTE: only 1 param of type string required
using '|' to split diffrent conditions, result in turn will be outputted according to the sequence of rule

'1-5': 1~5 in turn

'(2-9)^2': repeat 2 times of 2~9 in turn

'(3*7)^5': pick 5 random numbers from range of 3~7

and so is the "lowerCase" or "upperCase"

enjoy🙉

Readme

Keywords

Package Sidebar

Install

npm i handsome-char

Weekly Downloads

4

Version

1.1.2

License

MIT

Unpacked Size

8.24 kB

Total Files

6

Last publish

Collaborators

  • handsome_walker