# beer-calc

> Calculations for brewing beer.

Latest version **0.0.4** (published 2018-06-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install beer-calc
pnpm add beer-calc
yarn add beer-calc
bun add beer-calc
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2018-06-03 |
| First published | 2018-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 0 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | jeremyplack |
| Maintainers | jeremyplack |

## Links

- npm: https://www.npmjs.com/package/beer-calc
- Repository: https://github.com/stlouisweb/beer-calc
- Homepage: https://github.com/stlouisweb/beer-calc#readme
- Issues: https://github.com/stlouisweb/beer-calc/issues
- npm.io page: https://npm.io/package/beer-calc

## Recent versions

- 0.0.4 (latest) — 2018-06-03
- 0.0.3 — 2018-06-02
- 0.0.2 — 2018-06-02
- 0.0.1 — 2018-06-02
- 0.0.0 — 2018-06-02

## README

# beer-calc

> Calculations for brewing beer.

## Install

```
$ yarn add beer-calc
```

## Usage

```js
const beerCalc = require('beer-calc');

beerCalc('unicorns');
```

## API

Calculations for brewing beer.

### beerCalc.SRM([grains], batchSize)

Returns the SRM Color estimate for a recipe given an array of grain objects and the batch size in gallons.
The grain object has two properties, L (degrees Lovibond) and Lbs (weight of grain in pounds).

example:

```javascript
const SRM = beerCalc.SRM([{ L: 20, Lbs: 4 }, { L: 8, Lbs: 6 }], 5);
// returns 26.319359999999996
```

## License

[MIT](./LICENSE)

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