# 🍺 brewcalc ![brewcalc tests](https://github.com/brewcomputer/brewcalc/workflows/brewcalc%20tests/badge.svg)
A modern (ES6) functional JavaScript library for brewing calculations.

▶️ Try it online
--------------------
 * [Online recipe calculator](https://brewcomputer.github.io/brewcalc/) - import any BeerXML file or edit recipe JSON online.
 * [JSFiddle sample](https://jsfiddle.net/krutilin/nn7sdekg/)

🚀 Installation
------------
There are two ways to use **brewcalc** - client-side in a web browser or server-side using node.js.

### Browser
To use **brewcalc** in a browser, download compiled lib and include it to your html:

 * [The latest brewcalc.min.js](https://raw.githubusercontent.com/brewcomputer/brewcalc/master/lib/brewcalc.min.js)
 
```html
<script type="text/javascript" src="/scripts/brewcalc.min.js"></script>
```

### Node.js
For Node.js, you can install **brewcalc** using `npm`:

```bash
npm install brewcalc
```
add `--save` option to add brewcalc to your project's package.json

## Input data types
For expected input data types please refer to [FlowType definitions](https://github.com/brewcomputer/brewcalc/tree/master/src/types).

# 🍺 brewcalc ![brewcalc tests](https://github.com/brewcomputer/brewcalc/workflows/brewcalc%20tests/badge.svg)
A modern (ES6) functional JavaScript library for brewing calculations.

▶️ Try it online
--------------------
 * [Online recipe calculator](https://brewcomputer.github.io/brewcalc/) - import any BeerXML file or edit recipe JSON online.
 * [JSFiddle sample](https://jsfiddle.net/krutilin/nn7sdekg/)

🚀 Installation
------------
There are two ways to use **brewcalc** - client-side in a web browser or server-side using node.js.

### Browser
To use **brewcalc** in a browser, download compiled lib and include it to your html:

 * [The latest brewcalc.min.js](https://raw.githubusercontent.com/brewcomputer/brewcalc/master/web/brewcalc.min.js)
 
```html
<script type="text/javascript" src="/scripts/brewcalc.min.js"></script>
```

### Node.js
For Node.js, you can install **brewcalc** using `npm`:

```bash
npm install brewcalc
```
add `--save` option to add brewcalc to your project's package.json

## Input data types
For expected input data types please refer to [FlowType definitions](https://github.com/brewcomputer/brewcalc/tree/master/src/types).

Fix brewcalc.min.js link in readme
Fix brewcalc.min.js link in readme
