Socket
Socket
Sign inDemoInstall

dilution

Package Overview
Dependencies
468
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dilution

Calculate the dilution of 2 parts


Version published
Weekly downloads
1
Maintainers
1
Install size
33.1 MB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 04 Feb 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc