brewlab-calc
Library that contains methods for use for calculations used in brewing. You can use it for calculating ABV, Gravity etc.
Installation
Brewlab calc can be found on NPM
npm install --save @brewlab/calc
Using libraries
You can import any of the methods of this library.
import {finalGravity} from '@brewlab/calc';
const fg = finalGravity(1.050, 75);
Individual functions
If you are trying to reduce bundle size you can import individual functions from their respective files.
import finalGravity from '@brewlab/calc/finalGravity'
const fg = finalGravity(1.050, 75);
Contributing
please refer to CONTRIBUTING file for information on making contributions to this library.