Weighable (JS)
A library for dealing with weights in Javascript.
Installation
npm install --save weighable
OR
yarn add weighable
Usage
Using the Weight class is as simple as:
; let weight = 1 GRAM;weight = weight;weight = weight;
It gets even cleaner when you use the helper methods:
; let weight = ;weight = weight;weight = weight;
Testing
yarn install
yarn jest