An open API service indexing awesome lists of open source software.

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

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.