| Crates.io | stack-opt |
| lib.rs | stack-opt |
| version | 0.1.2 |
| created_at | 2025-04-08 16:58:05.230923+00 |
| updated_at | 2025-04-10 12:00:26.458111+00 |
| description | A blazing-fast CLI to audit and optimize your JS/TS dependency stack |
| homepage | |
| repository | https://github.com/tomc2154/stack-opt |
| max_upload_size | |
| id | 1625727 |
| size | 68,196 |
Audit and optimize your JavaScript/TypeScript dependency stack β fast, local, and smart.
stack-opt is a blazing-fast CLI tool written in Rust that scans your package.json and flags:
Useful for keeping your stack lean, modern, and production-ready.
dependencies and devDependenciesInstall via Cargo:
cargo install stack-opt
Or clone and build locally:
git clone https://github.com/tomc2154/stack-opt.git
cd stack-opt
cargo install --path .
stack-opt --path ./your-project
| Flag | Description |
|---|---|
--path |
Path to the project directory (default: .) |
--no-dev |
Skip devDependencies |
--json |
Output results in JSON format |
--fail-on |
Exit with code 1 on warnings or criticals |
stack-opt --no-dev
stack-opt --json > audit.json
stack-opt --fail-on crit
π¦ Fetching metadata for moment [dependencies]...
- [WARN] moment: π Large size (~4248.4 KB)
===========================
π Final Summary:
---------------------------
π΄ Critical: 1
π Warnings: 9
π΅ Info: 4
β
Clean: 6
π¦ Total: 20
===========================
Pull requests, issues, and suggestions are always welcome!
If youβve got ideas, open a discussion or issue.
MIT License.
See LICENSE for details.