Nighttime Peanut Migrations

    rep-max
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.1 • Public • Published

    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

    Install

    npm i rep-max

    DownloadsWeekly Downloads

    4

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    145 kB

    Total Files

    21

    Last publish

    Collaborators

    • danielsmith4483