0.12.0 • Published 1 year ago
regjsparser v0.12.0
RegJSParser
Parsing the JavaScript's RegExp in JavaScript.
Installation
npm install regjsparserUsage
var parse = require('regjsparser').parse;
var parseTree = parse('^a'); // /^a/
console.log(parseTree);
// Toggle on/off additional features:
var parseTree = parse('^a', '', {
// SEE: https://github.com/jviereck/regjsparser/pull/78
unicodePropertyEscape: true,
// SEE: https://github.com/jviereck/regjsparser/pull/83
namedGroups: true,
// SEE: https://github.com/jviereck/regjsparser/pull/89
lookbehind: true
});
console.log(parseTree);Testing
To run the tests, run the following command:
npm testTo create a new reference file, execute…
node test/update-fixtures.js…from the repo top directory.
0.12.0
1 year ago
0.11.2
1 year ago
0.11.0
1 year ago
0.11.1
1 year ago
0.10.0
3 years ago
0.9.0
4 years ago
0.9.1
3 years ago
0.8.4
4 years ago
0.8.1
4 years ago
0.8.0
4 years ago
0.8.3
4 years ago
0.8.2
4 years ago
0.7.0
4 years ago
0.6.9
5 years ago
0.6.8
5 years ago
0.6.7
5 years ago
0.6.6
5 years ago
0.6.5
5 years ago
0.6.4
6 years ago
0.6.3
6 years ago
0.6.2
6 years ago
0.6.1
6 years ago
0.6.0
7 years ago
0.5.1
7 years ago
0.5.0
7 years ago
0.4.0
7 years ago
0.3.0
8 years ago
0.2.1
9 years ago
0.2.0
10 years ago
0.1.5
10 years ago
0.1.4
11 years ago
0.1.3
11 years ago
0.1.2
11 years ago
0.1.1
11 years ago
0.1.0
12 years ago
0.0.2
12 years ago
0.0.1
12 years ago