A Node.js module that performs rep max calculations.
npm install rep-max --saveor
yarn add rep-maxFor 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).
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 # 2RMBy 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 # wathanThe full list of supported formulae is as follows:
epley- Epley formulabrzycki- BrzyckimcGlothin- McGlothinlombardi- Lombardimayhew- Mayhew et al.oConner- O'Conner et al.wathan- Wathan
npm run test