fitness-calc
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Fitness-calc

Function library for calculating fitness related values. Includes both strength and dieting related formulas.

Node.js (Install)

Requirements:

  • Node.js
  • npm (Node.js package manager)
npm install fitness-calc

Usage

ES6 import for typical API call signing use case:

const fitness = require('fitness-calc');

const weight = 100;
const reps = 5;

const oneRepMax = fitness.oneRepMaxEpley(weight, reps);
console.log(oneRepMax);

List of functions

One Repetition Maximum (1RM)

  • oneRepMaxEpley(weight, reps) - Epley formula
  • oneRepMaxBrzycki(weight, reps) - Brzycki formula
  • oneRepMaxMcGlothin(weight, reps) - McGlothin formula
  • oneRepMaxLombardi(weight, reps) - Lombardi formula
  • oneRepMaxMayhew(weight, reps) - Mayhew formula
  • oneRepMaxOConner(weight, reps) - O'Conner formula
  • oneRepMaxWathan(weight, reps) - Wathan formula

Basal Metabolism Rate (BMR)

  • BMR_men(weight, height, age) - BMR for men
  • BMR_women(weight, height, age) - BMR for women

Ideal Body Weight (IBW)

  • IBW_women(height, age) - IBW for men
  • IBW_women(height, age) - IBW for women

Release notes

1.0.2

Improve test cases and description

1.0.1

Add BMR

1.0.0

Initial release.

Package Sidebar

Install

npm i fitness-calc

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

8.98 kB

Total Files

8

Last publish

Collaborators

  • swafox