Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.137.185.239
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
regjsgen /
Delete
Unzip
Name
Size
Permission
Date
Action
LICENSE-MIT.txt
1.07
KB
-rw-rw-r--
2022-08-30 11:49
README.md
1.08
KB
-rw-rw-r--
2022-08-30 11:49
package.json
964
B
-rw-rw-r--
2022-08-30 11:49
regjsgen.js
11.3
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
# regjsgen [![Build status][ci-img]][ci] [![Code coverage status][codecov-img]][codecov] Generate regular expressions from [regjsparser][regjsparser]’s AST. ## Installation ```sh npm i regjsgen ``` ## API ### `regjsgen.generate(ast)` This function accepts an abstract syntax tree representing a regular expression (see [regjsparser][regjsparser]), and returns the generated regular expression string. ```js const regjsparser = require('regjsparser'); const regjsgen = require('regjsgen'); // Generate an AST with `regjsparser`. let ast = regjsparser.parse(regex); // Modify AST // … // Generate `RegExp` string with `regjsgen`. let regex = regjsgen.generate(ast); ``` ## Support Tested in Node.js 10, 12, 14, and 16.<br> Compatible with regjsparser v0.7.0’s AST. [ci]: https://github.com/bnjmnt4n/regjsgen/actions [ci-img]: https://github.com/bnjmnt4n/regjsgen/workflows/Node.js%20CI/badge.svg [codecov]: https://codecov.io/gh/bnjmnt4n/regjsgen [codecov-img]: https://codecov.io/gh/bnjmnt4n/regjsgen/branch/master/graph/badge.svg [regjsparser]: https://github.com/jviereck/regjsparser