This app provides monitoring and information features for the common freifunk user and the technical stuff of a freifunk community. Code base is taken from a TUM Practical Course project and added here to see if Freifunk Altdorf can use it. https://www.freifunk-altdorf.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1.2 KiB

RegJSGen

Generate RegExps from RegJSParser’s AST.

Installation

npm install --save regjsgen

Usage

var regjsgen = require('regjsgen');
// With `regjsparser`
var regjsparser = require('regjsparser');
var regex = '^a$';
var ast = regjsparser.parse(regex);
// Modify AST
// ...
// Regenerate `RegExp`
regex = regjsgen.generate(ast);

See Also

Testing

Run the command

npm test

To create a new reference file, execute

node test/update-fixture.js

from the repo top directory.

Support

Tested in Node.js 0.8.26~0.10.30.

Author

twitter/demoneaux
Benjamin Tan

Contributors

twitter/mathias
Mathias Bynens