1.1.1 • Published 5 years ago

rep-max v1.1.1

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

rep-max

A Node.js module that performs rep max calculations.

Build Status Coverage Status npm version

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:

Test

npm run test
1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago