dilution

0.0.3 • Public • Published

dilution

Calculate the dilution of 2 parts, like 1:2 for a 500ml bottle

Install

  1. 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

/dilution/

    Package Sidebar

    Install

    npm i dilution

    Weekly Downloads

    1

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • ntwcklng