1.1.2 • Published 2 years ago

handsome-char v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

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🙉

1.1.2

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

5 years ago

1.0.0

5 years ago