rep-max
A Node.js module that performs rep max calculations.
Installation
npm install rep-max --save
or
yarn add rep-max
Usage
For a given weight and rep count, the N-Rep Max can be calculated using nRepMax
. For convenience, oneRepMax(135, 5)
is functionally equivalent to calling nRepMax(1, 135, 5)
.
Javascript
var repMax = ; console;console;
Expected output:
157.5 # 1RM 147.66 # 2RM
By default, the Epley formula is used for calculation. To use a different formula, the formula name can be supplied as an optional parameter encapsulated in an object:
var repMax = ;var options = formula: "brzycki"; console;console;
Expected output:
116.13 # brzycki 120.33 # wathan
The full list of supported formulae is as follows:
epley
- Epley formulabrzycki
- BrzyckimcGlothin
- McGlothinlombardi
- Lombardimayhew
- Mayhew et al.oConner
- O'Conner et al.wathan
- Wathan
Test
npm run test