Skip to content

10Pines/aconcagua-js

Repository files navigation

Aconcagua

Measure and Units model for Javascript. Work in progress.

Examples

const { BaseUnit } = require('aconcagua');

const dollar = new BaseUnit('dollar');
const oneDollar = dollar.with(1);
oneDollar.amount(); // 1
const tenDollars = dollar.with(10);
const elevenDollars = tenDollars.plus(oneDollar);
elevenDollars.amount(); // 11
elevenDollars.unitName(); // 'dollars'

About

Measure and Units model for Javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published