0.12.0 • Published 3 months ago
regjsparser v0.12.0
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);
// 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 test
To create a new reference file, execute…
node test/update-fixtures.js
…from the repo top directory.
0.12.0
3 months ago
0.11.2
3 months ago
0.11.0
4 months ago
0.11.1
4 months ago
0.10.0
2 years ago
0.9.0
3 years ago
0.9.1
3 years ago
0.8.4
3 years ago
0.8.1
3 years ago
0.8.0
3 years ago
0.8.3
3 years ago
0.8.2
3 years ago
0.7.0
3 years ago
0.6.9
4 years ago
0.6.8
4 years ago
0.6.7
4 years ago
0.6.6
4 years ago
0.6.5
4 years ago
0.6.4
5 years ago
0.6.3
5 years ago
0.6.2
5 years ago
0.6.1
5 years ago
0.6.0
6 years ago
0.5.1
6 years ago
0.5.0
6 years ago
0.4.0
6 years ago
0.3.0
7 years ago
0.2.1
8 years ago
0.2.0
9 years ago
0.1.5
9 years ago
0.1.4
10 years ago
0.1.3
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.1.0
11 years ago
0.0.2
11 years ago
0.0.1
11 years ago