https://github.com/cschreib/kitchenconv
Command-line tool to convert units when cooking (cups to mL, etc).
https://github.com/cschreib/kitchenconv
command-line convert-units cooking tool
Last synced: 7 months ago
JSON representation
Command-line tool to convert units when cooking (cups to mL, etc).
- Host: GitHub
- URL: https://github.com/cschreib/kitchenconv
- Owner: cschreib
- License: mit
- Created: 2017-03-02T22:29:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-01T12:41:20.000Z (almost 8 years ago)
- Last Synced: 2025-03-02T19:25:03.524Z (over 1 year ago)
- Topics: command-line, convert-units, cooking, tool
- Language: C++
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kitchenconv
Ever needed to convert 3/4 cup of butter into grams? Look no further. This is a simple and intuitive command-line tool to convert units when cooking.
Features:
* Uses plain language as input and output.
* Conversions to/from units of volume, weight or temperature
* Includes european and US units.
* Conversions from volume to weight (or weight to volume) is possible if you tell the program what substance you are trying to convert (e.g., butter or flour).
* Supports all kinds of numeric notations as input, including simple numbers (1, 10), fractions (3/4, 9/8), and scientific notation (1e3, 5e-2).
* Written in pure C++, no header, no dependencies: will compile and run fast everywhere.
Usage examples:
```bash
> ./kitchenconv 1 cup to ml
1 cup is 236.6 ml
> ./kitchenconv 3/4 cup to ml
3/4 cup is 177.45 ml
> ./kitchenconv 1 cup butter to g
1 cup of butter is 226.805 g
> ./kitchenconv 0.4 kg to lb
0.4 kg is 0.881834 lb
```
To compile, run the script ```make.sh``` (needs GCC), or use your favorite compiler.