Crates.io | rusty-react-flow |
lib.rs | rusty-react-flow |
version | 0.1.1 |
created_at | 2025-04-19 00:28:25.001763+00 |
updated_at | 2025-04-19 02:39:27.086846+00 |
description | Parsing and analyzing React Components Flow code |
homepage | |
repository | https://github.com/cargo-fob/rusty-react-flow |
max_upload_size | |
id | 1640175 |
size | 1,891,353 |
A powerful command-line tool to analyze TypeScript/JavaScript modules for imports and exports.
.ts
, .tsx
, .js
, and .jsx
files for imports and exportscargo add rusty-react-flow
cargo install rusty-react-flow
npm install -D rusty-react-flow
Invoke via npx
:
npx rusty-react-flow [OPTIONS]
Run without arguments to analyze the current directory:
rusty-react-flow
# or via npm:
# npx rusty-react-flow
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 | — |
Analyze src
folder:
rusty-react-flow --path ./src
Interactive mode:
rusty-react-flow --interactive
Save JSON output:
rusty-react-flow --output report.json
All combined (with npx):
npx rusty-react-flow --path ./lib --interactive --output deps.json
The JSON output has this structure:
{
"files": [
{
"filePath": "src/App.tsx",
"imports": [
{ "name": "React", "source": "react", "kind": "default" }
],
"exports": [
{ "name": "App", "kind": "default-function" }
]
}
],
"summary": {
"totalFiles": 1,
"totalImports": 1,
"totalExports": 1,
"mostImported": ["react"],
"mostExported": ["App"]
}
}
git clone https://github.com/cargo-fob/rusty-react-flow.git
cd rusty-react-flow
cargo build --release
Contributions are welcome:
git checkout -b feature/X
)git commit -m "Add feature X"
)git push origin feature/X
)MIT © Jaeha Lee