Terminal calculator with real-time evaluation, currency conversion, and unit conversion
npm install cali-cliA terminal calculator with real-time evaluation, currency conversion, and unit conversion.
``bash`
npm install -g cali-cli
Or run directly with npx:
`bash`
npx cali-cli
`bash`
cali
Opens a nano-like editor with:
- Real-time calculation results on the right
- Running total at the bottom
- Syntax highlighting
`bash`
cali "100 + 50 * 2"
cali "100 USD in EUR"
cali "5 km in miles"
`bash`
cali expenses.cal
cali -i expenses.cal # Open in interactive mode
`bash`
echo "100 + 200" | cali
cat budget.cal | cali
| Shortcut | Action |
|----------|--------|
| Ctrl+S | Save file |Ctrl+P
| | Share (copy cali.run link) |Ctrl+L
| | Clear editor |Ctrl+C
| | Quit |Ctrl+W
| | Delete word |Ctrl+U
| | Delete to start of line |Option+←/→
| | Move by word |
- Real-time evaluation - See results as you type
- Currency conversion - 100 USD in EUR5 km in miles
- Unit conversion - , 20 C in F100 + 10%
- Percentages - , 25% of 200rent: 1500
- Labels - // this is a comment
- Comments - total
- Totals - or total in USD
`
// Monthly budget
rent: 1500 USD
groceries: 400
utilities: 150
total
`
`
// Trip distance
Paris to London: 450 km
London to Edinburgh: 650 km
total in miles
``
MIT