js-quantities
js-quantities copied to clipboard
JavaScript library for quantity calculation and unit conversion
I'm trying to set up a converter between the units m and Nm (meters -> nautical miles) like this: `console.log(Qty("55560 m").to("naut-mile").scalar);` // 30.000000000000007 A nautical mile is equal to 1852...
Hello, I'm trying to import the ES module version of the library in an Angular 15 project and I get the following error:  I see that there is an...
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. Release notes Sourced from word-wrap's releases. 1.2.4 What's Changed Remove default indent by @mohd-akram in jonschlinkert/word-wrap#24 🔒fix: CVE 2023 26115 (2) by @OlafConijn in...
How can we generate a pretty quantity (eg.`96 °C`, `10 µA`) from a `Qty`? `js-quantities` has an API for formatting output, including specifying custom formatter functions, but this formatting seems...
I've recently tried to use js-quantities to parse values produced by UnitsNet which formats units according to the user's locale. On my machine, the grouping separator is the comma `,`...
I'm trying to set up a converter between the inverse units `m/s` and `min/km` (`meters per second` -> `minutes per kilometer`). Using simple syntax, this works as expected and provides...
Hi, While doing some tests, i found out that it is not possible to create quantities with NaN or Infinity. I would like to know if it's an expected behavior....
Gauge unit is used in US to measure really thick products like plastic film. As defined here: [gauging.com] (https://www.gauging.com/customer-resources/film-calculators/plastic-gauge-thickness-chart/) 100 gauge = 1 mil = 0.0000254 m