# dilution

> Calculate the dilution of 2 parts

Latest version **1.0.1** (published 2025-01-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install dilution
pnpm add dilution
yarn add dilution
bun add dilution
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2025-01-18 |
| First published | 2018-01-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | > 20.0.0 |
| Dependencies | 4 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Marvin Mieth |
| Maintainers | ntwcklng |

## Links

- npm: https://www.npmjs.com/package/dilution
- Repository: https://github.com/ntwcklng/dilution
- Homepage: https://github.com/ntwcklng/dilution#readme
- Issues: https://github.com/ntwcklng/dilution/issues
- npm.io page: https://npm.io/package/dilution

## Dependencies (4)

- [ava](https://npm.io/package/ava.md) ^0.25.0
- [prettier](https://npm.io/package/prettier.md) ^1.19.1
- [typescript](https://npm.io/package/typescript.md) ^5.7.3
- [lint-staged](https://npm.io/package/lint-staged.md) ^6.1.1

## Recent versions

- 1.0.1 (latest) — 2025-01-18
- 1.0.0 — 2025-01-18
- 0.0.3 — 2018-02-04
- 0.0.2 — 2018-01-01
- 0.0.1 — 2018-01-01

## README

# dilution

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

## Install

1. Add this module to your dependencies

```bash
yarn add dilution
# or
npm install --save dilution
```

## Usage

```ts
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

---
_Source: https://npm.io/package/dilution · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
