Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by150%
Maintainers
1
Weekly downloads
 
Created
Source

##Public Methods: #####Body Masss Index - BMI

female.BMI(weight, height);
male.BMI(weight, height);

#####Basal Metabolic Rate - BMR

The amount of calories you need to maintain body weight.

female.BMR(weight, height, age);
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 
female.noActivity(female.BMR);
male.noActivity(male.BMR);
//Light Activity 
female.lightActivity(female.BMR);
male.lightActivity(male.BMR);
//Moderate Activity 
female.moderateActivity(female.BMR);
male.moderateActivity(male.BMR);
//Very Active
female.veryActive(female.BMR);
male.verActive(male.BMR)
//Extremely Active
female.extremelyActive(female.BMR);
male.extremelyActive(male.BMR);

#####Ideal Body Weight - IBW

female.IBW(height);
male.IBW(height);

######Author: Alex Bennett

Licesnse: MIT

Keywords

FAQs

Package last updated on 12 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc