Package Exports
- numeric-quantity
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (numeric-quantity) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
numeric-quantity
Installation
npm
npm i --save numeric-quantityBrowser
In the browser, available as a global function numericQuantity.
<script src="bower_components/numeric-quantity/index.js"></script>
<script>
console.log(numericQuantity("10 1/2")); // 10.5
</script>Usage
var numericQuantity = require("numeric-quantity"); // assuming node environment
console.log( numericQuantity("1 1/2") ); // 1.5
console.log( numericQuantity("2 2/3") ); // 2.666