string_random.js

0.0.4 • Public • Published

String_random.js

https://github.com/cho45/String_random.js

String_random.js is for generating random string from regexp pattern.

SYNOPSIS

var randomString = String_random(/\d\d\d/);
console.log(randomString); //=> "000", "010", "432" or etc...

SUPPRTED SYNTAXES

  • * + ? {n,n}: quantifier
  • . : generating following: [a-zA-Z0-9 !"#$%&'()*+,-./:;<=>?@[\]^_{|}~]`
  • [ .. ] : character class (also supports range with - but does not supports ^)
  • ( .. ) : simple grouping
  • | : alternative

WILL NOT SUPPRT

  • ^ : beginning of line
  • $ : end of line
  • \b \B

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    3
  • 0.0.3
    3
  • 0.0.2
    3
  • 0.0.1
    3

Package Sidebar

Install

npm i string_random.js

Weekly Downloads

4

Version

0.0.4

License

BSD

Last publish

Collaborators

  • cho45