Library that contains methods for use for calculations used in brewing. You can use it for calculating ABV, Gravity etc.
Brewlab calc can be found on NPM
npm install --save @brewlab/calc
You can import any of the methods of this library.
import {finalGravity} from '@brewlab/calc';
const fg = finalGravity(1.050, 75);
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);
please refer to CONTRIBUTING file for information on making contributions to this library.