elearning/Frontend-Learner/node_modules/regexp-ast-analysis/README.md
2026-01-13 10:48:02 +07:00

29 lines
1,021 B
Markdown

# RegExp AST analysis
[![Actions Status](https://github.com/RunDevelopment/regexp-ast-analysis/workflows/Node.js%20CI/badge.svg)](https://github.com/RunDevelopment/regexp-ast-analysis/actions)
[![npm](https://img.shields.io/npm/v/regexp-ast-analysis)](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/)