29 lines
1,021 B
Markdown
29 lines
1,021 B
Markdown
# RegExp AST analysis
|
|
|
|
[](https://github.com/RunDevelopment/regexp-ast-analysis/actions)
|
|
[](https://www.npmjs.com/package/regexp-ast-analysis)
|
|
|
|
This is a library providing functionalities to analyse [JavaScript RegExp](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp).
|
|
|
|
All functions operate on AST nodes produced by [regexpp](https://github.com/mysticatea/regexpp). Characters are parsed by [refa](https://github.com/RunDevelopment/refa).
|
|
|
|
## Usage
|
|
|
|
Install the library using npm:
|
|
|
|
```bash
|
|
npm i regexp-ast-analysis
|
|
```
|
|
|
|
Import the library:
|
|
|
|
```js
|
|
import * as RAA from "regexp-ast-analysis";
|
|
```
|
|
|
|
## Documentation
|
|
|
|
Links to the full API documentation:
|
|
|
|
- [Latest release](https://rundevelopment.github.io/regexp-ast-analysis/docs/latest/)
|
|
- [Development](https://rundevelopment.github.io/regexp-ast-analysis/docs/dev/)
|