https://github.com/dohliam/compare-prices
Compare prices - Shopping helper
https://github.com/dohliam/compare-prices
compare-prices javascript prices shopping tiny-tools
Last synced: about 2 months ago
JSON representation
Compare prices - Shopping helper
- Host: GitHub
- URL: https://github.com/dohliam/compare-prices
- Owner: dohliam
- License: mit
- Created: 2017-02-15T19:09:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-08T22:01:19.000Z (over 5 years ago)
- Last Synced: 2025-06-09T14:07:43.259Z (4 months ago)
- Topics: compare-prices, javascript, prices, shopping, tiny-tools
- Language: HTML
- Homepage: https://dohliam.github.io/tiny_tools/prices/
- Size: 3.91 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Compare prices - Shopping helper
Let's say you are looking at two different products in a store. The first one is $5.89 for 350 __ml__, and the second one is $7.50 for 16 __fl oz__. Quick, which one is the better deal? "Compare prices" can help you quickly and easily resolve this problem.
## Usage
Enter the cost of the items in the __price__ field. This will work for any currency counted in units of 100 (dollars, euros, rubles, etc).
Enter the dry or liquid weight of the items in the __per__ field, and select the type of units from the dropdown menu below.
Press the __Convert__ button to calculate the result. The prices will be standardized to the cost per 100 g if dry weight, or 100 ml if fluid weight.
## Units supported
Metric:
* grams (g)
* kilograms (kg)
* millilitres (ml)
* litres (l)Imperial:
* pounds (lb)
* ounces (oz)
* fluid ounces (fl oz)## To implement
* Option to change currency symbol
## See also
"Compare prices" is part of the [**tiny tools**](https://dohliam.github.io/tiny_tools/) series, a collection of small mobile-friendly JavaScript tools for performing common tasks in the browser.
Other tools for working with numbers, units, and currencies that might also be of interest:
* [Units](https://github.com/dohliam/units)
* [Currency table](https://github.com/dohliam/currency-table)## Credits
* [Milligram](https://github.com/milligram/milligram) CSS by @cjpatoilo, prototyped using [dropin-minimal-css](https://github.com/dohliam/dropin-minimal-css)
* [github-corners](https://github.com/tholman/github-corners) by @tholman## License
MIT.