@thraggs/cli
v1.0.8
Published
The official AST migration codemod for the `@thraggs/godspeed` HTTP client.
Downloads
66
Readme
⚡ @thraggs/cli
The official AST migration codemod for the @thraggs/godspeed HTTP client.
This CLI tool automatically inspects your codebase and seamlessly migrates legacy axios bindings to target Godspeed's high-performance compatibility layer.
Usage
You can run the utility securely without installing it permanently via npx or bunx. Just point it at your source directory:
npx @thraggs/cli migrate ./srcWhat it does automatically:
- Swaps
import axios from 'axios'directly toimport { GodspeedClient as axios } from '@thraggs/godspeed/compat'across hundreds of files simultaneously. - Natively rewrites explicit
axios.create({ ... })initializer patterns. - Analyzes your trees for fragmented Axios interceptor patterns (
axios.interceptors.request.use), automatically ignoring safe code while explicitly flagging complex Promise-chain anomalies directly to a rawgodspeed-migration-report.mdmarkdown file for your manual quality assurance.
