https://github.com/sxzz/ast-kit
A toolkit for easy Babel AST generation and manipulation.
https://github.com/sxzz/ast-kit
Last synced: about 1 month ago
JSON representation
A toolkit for easy Babel AST generation and manipulation.
- Host: GitHub
- URL: https://github.com/sxzz/ast-kit
- Owner: sxzz
- License: mit
- Created: 2023-06-01T15:20:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-24T05:34:41.000Z (about 2 months ago)
- Last Synced: 2025-03-28T10:07:43.647Z (about 2 months ago)
- Language: TypeScript
- Homepage: https://jsr.io/@sxzz/ast-kit
- Size: 854 KB
- Stars: 48
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome - sxzz/ast-kit - A toolkit for easy Babel AST generation and manipulation. (TypeScript)
- awesome - sxzz/ast-kit - A toolkit for easy Babel AST generation and manipulation. (TypeScript)
README
# ast-kit [](https://npmjs.com/package/ast-kit) [](https://jsr.io/@sxzz/ast-kit) [](https://github.com/sxzz/ast-kit/actions/workflows/unit-test.yml) [](https://codecov.io/gh/sxzz/ast-kit)
A toolkit for easy Babel AST generation and manipulation.
[π API Reference](https://jsr.io/@sxzz/ast-kit/doc)
## Features
- **π Easy to Use**: Parse and resolve Babel AST with a straightforward API.
- **π¦Ύ Type-Friendly**: Built in TypeScript with complete type definitions.
- **π― Coverage**: 100% test coverage.
- **πͺΆ Lightweight**: Tree-shakable with only two dependencies.## Install
```bash
npm i ast-kit
```Requires Node.js 16.14.0 or higher.
## AST Explorer
You can explore your code's AST using the [AST Explorer](https://ast.sxzz.moe/).
## Sponsors
## License
[MIT](./LICENSE) License Β© 2023-PRESENT [δΈε²ζΊε](https://github.com/sxzz)