fitness-calc
v1.0.2
Published
Function library for calculating fitness related values
Downloads
15
Maintainers
Readme
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 formulaoneRepMaxBrzycki(weight, reps)
- Brzycki formulaoneRepMaxMcGlothin(weight, reps)
- McGlothin formulaoneRepMaxLombardi(weight, reps)
- Lombardi formulaoneRepMaxMayhew(weight, reps)
- Mayhew formulaoneRepMaxOConner(weight, reps)
- O'Conner formulaoneRepMaxWathan(weight, reps)
- Wathan formula
Basal Metabolism Rate (BMR)
BMR_men(weight, height, age)
- BMR for menBMR_women(weight, height, age)
- BMR for women
Ideal Body Weight (IBW)
IBW_women(height, age)
- IBW for menIBW_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.