Projekt

Obecné

Profil

Stáhnout (440 Bajtů) Statistiky
| Větev: | Revize:
1
# RegJSParser
2

    
3
Parsing the JavaScript's RegExp in JavaScript.
4

    
5
## Installation
6

    
7
```bash
8
npm install regjsparser
9
```
10

    
11
## Usage
12

    
13
```js
14
var parse = require('regjsparser').parse;
15

    
16
var parseTree = parse('^a'); // /^a/
17
console.log(parseTree);
18
```
19

    
20
## Testing
21

    
22
To run the tests, run the following command:
23

    
24
```bash
25
npm test
26
```
27

    
28
To create a new reference file, execute…
29

    
30
```bash
31
node test/update-fixtures.js
32
```
33

    
34
…from the repo top directory.
(3-3/5)