Wondering what‚Äôs next for npm?Check out our public roadmap! ¬Ľ

    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

    Keywords

    none

    Install

    npm i dilution

    DownloadsWeekly Downloads

    1

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • avatar