vlad 6f123ff03e 18.07 | 6 gadi atpakaļ | |
---|---|---|
.. | ||
bin | 6 gadi atpakaļ | |
CHANGELOG | 6 gadi atpakaļ | |
LICENSE.BSD | 6 gadi atpakaļ | |
README.md | 6 gadi atpakaļ | |
package.json | 6 gadi atpakaļ | |
parser.js | 6 gadi atpakaļ |
Parsing the JavaScript's RegExp in JavaScript.
npm install regjsparser
var parse = require('regjsparser').parse;
var parseTree = parse('^a'); // /^a/
console.log(parseTree);
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.