Sha256: 06e79f6d631f5089ffed6882024cc6d0af64bb9e4adbb680514adb0bdade3894

Contents?: true

Size: 788 Bytes

Versions: 63

Compression:

Stored size: 788 Bytes

Contents

# RegJSParser

Parsing the JavaScript's RegExp in JavaScript.

## Installation

```bash
npm install regjsparser
```

## Usage

```js
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:

```bash
npm test
```

To create a new reference file, execute…

```bash
node test/update-fixtures.js
```

…from the repo top directory.

Version data entries

63 entries across 62 versions & 12 rubygems

Version Path
immosquare-cleaner-0.1.67 node_modules/regjsparser/README.md
immosquare-cleaner-0.1.66 node_modules/regjsparser/README.md
immosquare-cleaner-0.1.65 node_modules/regjsparser/README.md
immosquare-cleaner-0.1.64 node_modules/regjsparser/README.md
immosquare-cleaner-0.1.63 node_modules/regjsparser/README.md
rapid_stack-0.2.0 templates/frontend/node_modules/regjsparser/README.md
rapid_stack-0.1.1 templates/FrontEnd/node_modules/regjsparser/README.md
rapid_stack-0.1.0 templates/FrontEnd/node_modules/regjsparser/README.md
immosquare-cleaner-0.1.62 node_modules/regjsparser/README.md
immosquare-cleaner-0.1.61 node_modules/regjsparser/README.md
immosquare-cleaner-0.1.60 node_modules/regjsparser/README.md
immosquare-cleaner-0.1.59 node_modules/regjsparser/README.md
immosquare-cleaner-0.1.58 node_modules/regjsparser/README.md
immosquare-cleaner-0.1.57 node_modules/regjsparser/README.md
immosquare-cleaner-0.1.56 node_modules/regjsparser/README.md
immosquare-cleaner-0.1.55 node_modules/regjsparser/README.md
immosquare-cleaner-0.1.54 node_modules/regjsparser/README.md
immosquare-cleaner-0.1.53 node_modules/regjsparser/README.md
immosquare-cleaner-0.1.52 node_modules/regjsparser/README.md
immosquare-cleaner-0.1.51 node_modules/regjsparser/README.md