Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RunDevelopment/regexp-ast-analysis
A library for analysing JS RegExp
https://github.com/RunDevelopment/regexp-ast-analysis
regex regexp
Last synced: 2 months ago
JSON representation
A library for analysing JS RegExp
- Host: GitHub
- URL: https://github.com/RunDevelopment/regexp-ast-analysis
- Owner: RunDevelopment
- License: mit
- Created: 2021-04-08T11:39:25.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-29T08:54:38.000Z (7 months ago)
- Last Synced: 2024-11-10T18:12:17.076Z (3 months ago)
- Topics: regex, regexp
- Language: TypeScript
- Homepage:
- Size: 1.22 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-regex - regexp-ast-analysis - ast-analysis/docs/latest/)] - Analyze AST nodes produced by regexpp. (JavaScript regex libraries / Regex processors)
README
# 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/)