rep-max
v1.1.1
Published
Module for rep max calculations.
Downloads
201
Maintainers
Readme
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 = require('rep-max');
console.log(repMax.oneRepMax(135, 5));
console.log(repMax.nRepMax(2, 135, 5));
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 = require('rep-max');
var options = {formula: "brzycki"};
console.log(repMax.oneRepMax(100, 6, options).toFixed(2));
console.log(repMax.oneRepMax(100, 6, {formula: "wathan"}).toFixed(2));
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