randomjs
Version:
Generate a random string that matches a given RegExp JavaScript object.
17 lines (10 loc) • 422 B
Markdown
## randomjs ##
Thanks for [fent](https://github.com/fent)'s [randexp](https://github.com/fent/randexp.js). try [http://fent.github.io/randexp.js/](http://fent.github.io/randexp.js/) for more infomation.
### Install ###
npm install randomjs
### Usage ###
var randomjs = require('randomjs');
console.log(randomjs('hello{1,9} (world|to you)'));
// => HellooOO To yOU
### License ###
MIT