calcufly-health
v1.0.0
Published
Health and fitness calculator functions - BMI, BMR, TDEE, body fat, calorie, macro, heart rate, pregnancy calculations. By CalcuFly.com
Maintainers
Readme
calcufly-health
Health and fitness calculator functions for Node.js. BMI, BMR, TDEE, body fat, calories, macros, heart rate zones and more.
Part of the CalcuFly calculator suite — 600+ free online calculators.
Installation
npm install calcufly-healthQuick Start
const health = require('calcufly-health');
// BMI
const bmi = health.bmi(75, 175);
console.log(bmi); // { bmi: 24.49, category: 'Normal weight' }
// BMR (Mifflin-St Jeor)
const bmr = health.bmrMifflin(75, 175, 30, 'male');
console.log(bmr); // 1723.75
// TDEE
const tdee = health.tdee(1724, 'moderate');
console.log(tdee); // 2672.2
// Calories burned
const cal = health.caloriesBurned(8, 70, 30);
console.log(cal); // 280API Reference
| Function | Description |
|----------|-------------|
| bmi(weightKg, heightCm) | Body Mass Index |
| bmrMifflin(weight, height, age, gender) | Basal Metabolic Rate |
| bmrHarrisBenedict(weight, height, age, gender) | BMR Harris-Benedict |
| tdee(bmr, activityLevel) | Total Daily Energy Expenditure |
| calorieDeficit(tdee, targetLoss) | Calorie deficit plan |
| macroSplit(calories, protein%, carb%, fat%) | Macro nutrient split |
| bodyFatNavy(waist, neck, height, gender, hip) | Body fat % (Navy) |
| idealWeightDevine(height, gender) | Ideal weight |
| heartRateZones(age, restingHR) | Training heart rate zones |
| vo2Max(age, restingHR) | VO2 Max estimate |
| oneRepMax(weight, reps) | 1RM strength estimate |
| caloriesBurned(met, weight, duration) | Calories burned |
| pregnancyDueDate(lastPeriod) | Due date calculator |
| alcoholBAC(drinks, weight, gender, hours) | Blood alcohol |
| paceCalculator(distance, time) | Running pace |
| waterIntake(weight, activity) | Daily water needs |
Try these calculations online at CalcuFly.com — free, no signup required.
License
MIT — CalcuFly
