What is the best/most elegant way to abstract out the conversion of units of measures in the client, based on a user-preferred unit of measure setting?
For example,
A popular utility that lets you convert between different units: convert-units
Usage example, converting imperial inches to metric cm:
var convert = require('convert-units') convert(1).from('in').to('cm') // 2.54
To install:
npm install convert-units