| Crates.io | verypretty |
| lib.rs | verypretty |
| version | 0.1.0 |
| created_at | 2025-07-27 09:02:49.833238+00 |
| updated_at | 2025-07-27 09:02:49.833238+00 |
| description | A high-performance file prettifier that formats minified code and copies results to clipboard |
| homepage | https://github.com/Ran-Mewo/verypretty |
| repository | https://github.com/Ran-Mewo/verypretty |
| max_upload_size | |
| id | 1769839 |
| size | 72,349 |
A high-performance file prettifier built with Rust that automatically formats minified code and copies the result to your clipboard.
.js, .mjs, .cjs).ts, .mts, .cts).json)cargo install verypretty
After installation, you can use the pretty command from anywhere:
pretty myfile.js
# Clone and build
git clone https://github.com/RanMewo/verypretty
cd verypretty
cargo build --release
# The binary will be at target/release/pretty
# Optionally copy to your PATH
sudo cp target/release/pretty /usr/local/bin/
# Prettify a minified JavaScript file
pretty bundle.min.js
# Prettify a JSON file
pretty package.json
# Prettify TypeScript
pretty app.ts
# Just print without clipboard
pretty large-file.js --no-clipboard
# Force file type
pretty myfile --type js
pretty myfile --type json
VeryPretty is designed for maximum performance:
VeryPretty includes enhanced Linux clipboard support:
wl-clipboard-rsThe clipboard functionality has been specifically optimized for Linux environments to avoid the common "clipboard dropped too quickly" issues.
Usage: pretty [OPTIONS] <FILE>
Arguments:
<FILE> Path to the file to prettify
Options:
-t, --type <TYPE> Force a specific file type (js, ts, json)
-n, --no-clipboard Don't copy to clipboard, just print to stdout
-h, --help Print help
-V, --version Print version
# Development build
cargo build
# Optimized release build
cargo build --release
# Run tests
cargo test
MIT License