https://github.com/t14raptor/go-fast
A JavaScript AST parser, traverser, and generator written in Go
https://github.com/t14raptor/go-fast
ast deobfuscation go golang javascript
Last synced: 5 months ago
JSON representation
A JavaScript AST parser, traverser, and generator written in Go
- Host: GitHub
- URL: https://github.com/t14raptor/go-fast
- Owner: T14Raptor
- License: mit
- Created: 2024-08-01T23:34:54.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-07-09T03:34:33.000Z (12 months ago)
- Last Synced: 2025-07-09T04:31:17.405Z (12 months ago)
- Topics: ast, deobfuscation, go, golang, javascript
- Language: Go
- Homepage: https://discord.gg/wdJ4VcdrwK
- Size: 249 KB
- Stars: 90
- Watchers: 3
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-fAST
`go-fAST` is a super-fast Golang library designed for parsing, transforming, and generating JavaScript Abstract Syntax Trees (ASTs). This library provides a simple and efficient way to work with JavaScript ASTs in Go, enabling developers to perform a variety of tasks including code analysis and (de)obfuscation.
[](https://discord.gg/wdJ4VcdrwK)
## Features
- **Parsing**: Convert JavaScript code into its AST representation.
- **Transforming**: Apply transformations to JavaScript ASTs to modify code structures.
- **Generating**: Generate JavaScript code from ASTs.
## Installation
To use `go-fAST` in your Go project, you need to install it using `go get`:
```sh
go get github.com/t14raptor/go-fast
```
## Docs
[Documentation](https://yoghurtbot-io.gitbook.io/go-fast)
## Credits
We'd like to extend our heartfelt thanks to the following individuals and projects for their invaluable contributions:
- **[@JustTalDevelops](https://github.com/JustTalDevelops)**: For providing exceptional assistance with code generation edge cases and pretty printing.
- **[@steakenthusiast](https://github.com/steakenthusiast)**: For the creative and fitting name for the project.
- **[goja](https://github.com/dop251/goja)**: For their parsing code that was instrumental in our implementation.
- **[swc](https://swc.rs/)**: For their robust and efficient visiting API.
Your support and contributions have greatly enhanced the development of this project. Thank you!