🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

healthstats

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

healthstats

Calculate BMI, BMR, and IBW.

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
4
-42.86%
Maintainers
1
Weekly downloads
 
Created
Source

#Health Stats

image

Node module for calculating BMI, BMR and IBW:

How to:
  • npm install healthstats
  • include healthstats in your .js file
  • Use inches for 'height' and pounds for 'weight'
var health = require('healthstats');

Public Methods:

Body Masss Index - BMI
health.female.BMI(weight, height);
health.male.BMI(weight, height);
Basal Metabolic Rate - BMR

The amount of calories you need to maintain body weight.

health.female.BMR(weight, height, age);
health.male.BMR(weight, height, age);
BMR by lifestyle:

In order to call the following methods, you must first set a BMR value, or else you must pass a BMR value manually.

//Sedentary 
health.female.noActivity(female.BMR);
health.male.noActivity(male.BMR);
//Light Activity 
health.female.lightActivity(female.BMR);
health.male.lightActivity(male.BMR);
//Moderate Activity 
health.female.moderateActivity(female.BMR);
health.male.moderateActivity(male.BMR);
//Very Active
health.female.veryActive(female.BMR);
health.male.verActive(male.BMR)
//Extremely Active
health.female.extremelyActive(female.BMR);
health.male.extremelyActive(male.BMR);
Ideal Body Weight - IBW
health.female.IBW(height);
health.male.IBW(height);
Author: Alex Bennett

Licesnse: MIT

Keywords

BMI

FAQs

Package last updated on 14 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts