🚀 rusty-react-flow
A powerful command-line tool to analyze TypeScript/JavaScript modules for imports and exports.
✨ Features
- 🔍 Analyze
.ts,.tsx,.js, and.jsxfiles for imports and exports - 📊 Generate detailed reports on module dependencies
- 🎛 Interactive mode for selecting directories and files
- 📁 Export analysis to JSON or display in console
- 📈 Summary statistics for most imported/exported modules
📦 Installation
As a library dependency
Global CLI (Cargo)
Node.js projects (NPM)
Invoke via npx:
⚙️ Usage
Run without arguments to analyze the current directory:
# or via npm:
# npx rusty-react-flow
❯ CLI Options
| Option | Description | Default |
|---|---|---|
-p, --path <PATH> |
Directory path to analyze | . |
-i, --interactive |
Run in interactive mode | — |
-o, --output <FILE> |
Write output JSON to file | stdout |
--help |
Print help information | — |
--version |
Print version information | — |
❯ Examples
-
Analyze
srcfolder: -
Interactive mode:
-
Save JSON output:
-
All combined (with npx):
📄 Output Format
The JSON output has this structure:
🛠️ Development
Prerequisites
- Rust 1.85.1 or later
- Cargo
Build from source
🤝 Contributing
Contributions are welcome:
- Fork the repo
- Create a branch (
git checkout -b feature/X) - Commit your changes (
git commit -m "Add feature X") - Push (
git push origin feature/X) - Open a Pull Request
📝 License
MIT © Jaeha Lee