frappe_docker/frappe-bench/node_modules/regjsparser
2017-07-31 15:51:51 +05:30
..
bin Final docker setup 2017-07-31 15:51:51 +05:30
node_modules Final docker setup 2017-07-31 15:51:51 +05:30
CHANGELOG Final docker setup 2017-07-31 15:51:51 +05:30
LICENSE.BSD Final docker setup 2017-07-31 15:51:51 +05:30
package.json Final docker setup 2017-07-31 15:51:51 +05:30
parser.js Final docker setup 2017-07-31 15:51:51 +05:30
README.md Final docker setup 2017-07-31 15:51:51 +05:30

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.