dilution
v0.0.3
Published
Calculate the dilution of 2 parts
Downloads
1
Readme
dilution
Calculate the dilution of 2 parts, like 1:2 for a 500ml bottle
Install
- Add this module to your dependencies
yarn add dilution
# or
npm install --save dilution
Usage
const dilution = require('dilution')
console.log(dilution(1, 2, 500)) //=> { part1: '167', part2: '333' }
console.log(dilution(50, 50, 500)) //=> { part1: '250', part2: '250' }
License
MIT - Marvin Mieth