GT2/GT2-iOS/node_modules/regjsparser
Ren Ren Juan 30eef7d036 correct tree err 2018-02-12 17:26:06 +00:00
..
bin correct tree err 2018-02-12 17:26:06 +00:00
node_modules correct tree err 2018-02-12 17:26:06 +00:00
CHANGELOG correct tree err 2018-02-12 17:26:06 +00:00
LICENSE.BSD correct tree err 2018-02-12 17:26:06 +00:00
README.md correct tree err 2018-02-12 17:26:06 +00:00
package.json correct tree err 2018-02-12 17:26:06 +00:00
parser.js correct tree err 2018-02-12 17:26:06 +00:00

README.md

RegJSParser

Parsing the JavaScript's RegExp in JavaScript.

Installation

npm install regjsparser

Usage

var parse = require('regjsparser').parse;

var parseTree = parse('^a'); // /^a/
console.log(parseTree);

Testing

To run the tests, run the following command:

npm test

To create a new reference file, execute…

node test/update-fixtures.js

…from the repo top directory.