Socket
Book a DemoInstallSign in
Socket

dilution

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dilution

Calculate the dilution of 2 parts

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
1
-66.67%
Maintainers
0
Weekly downloads
 
Created
Source

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

import dilution from "dilution";

console.log(dilution({ part1: 1, part2: 2, bottle: 500 })); //=> { part1: '167', part2: '333' }
console.log(dilution({ part1: 50, part2: 50, bottle: 500 })); //=> { part1: '250', part2: '250' }

License

MIT - Marvin Mieth

FAQs

Package last updated on 18 Jan 2025

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.