| Crates.io | coinvert |
| lib.rs | coinvert |
| version | 0.0.3 |
| created_at | 2025-03-19 03:41:52.714667+00 |
| updated_at | 2025-03-19 16:30:31.915113+00 |
| description | A fast and flexible command-line currency converter that provides historical exchange rates. |
| homepage | |
| repository | https://github.com/hnrq/coinvert |
| max_upload_size | |
| id | 1597682 |
| size | 62,615 |
A fast and flexible command-line currency converter that provides historical exchange rates.
Coinvert is a Rust-based CLI tool for currency conversion that uses real-time exchange rates. It allows you to quickly convert between different currencies using the command line, supports historical exchange rates, and offers various output formats to fit your needs.
Important: Coinvert currently only supports x86_64 architecture. It will not work on ARM-based systems (like Raspberry Pi or Apple Silicon M1/M2 without Rosetta).
The fastest way to install Coinvert on x86_64 systems is using our installation script:
curl -sSL https://raw.githubusercontent.com/hnrq/coinvert/main/install.sh | bash
This script will:
/usr/local/bin/ (may require sudo permission)If you have Rust installed, you can install Coinvert directly from crates.io:
cargo install coinvert
If you prefer to manually install, you can download prebuilt binaries for x86_64 Linux and macOS from the releases page.
After downloading:
chmod +x coinvert
sudo mv coinvert /usr/local/bin/
This method gives you control over the installation process and allows you to verify the binary before installation.
Convert 100 USD to EUR:
coinvert 100 --from USD --to EUR
Or using short options:
coinvert 100 -f USD -t EUR
Convert 100 USD to EUR using the exchange rate from a specific date:
coinvert 100 -f USD -t EUR --date 2023-01-15
Change the output format:
coinvert 100 -f USD -t EUR --format short
Available formats:
full (default): Shows full human-readable text with date and currency namesshort: Shows only the conversion valuesConvert 50 GBP to JPY:
coinvert 50 -f GBP -t JPY
Convert 75 EUR to CAD on January 1, 2022:
coinvert 75 -f EUR -t CAD -d 2022-01-01
Get short format output for 200 AUD to NZD:
coinvert 200 -f AUD -t NZD --format short
Get full format output for 100 USD to EUR:
coinvert 100 -f USD -t EUR --format full
Clone the repository:
git clone https://github.com/username/coinvert.git
cd coinvert
Build the project:
cargo build --release
The binary will be available at target/release/coinvert
Coinvert is built with:
MIT
Contributions are welcome! Please feel free to submit a Pull Request.