/wellness

Superior wellness JavaScript app

Primary LanguageTypeScriptMIT LicenseMIT

wellness

Build Status Coverage Status Node.js CI

Package author: Jukka Aho (@ahojukka5, ahojukka5@gmail.com)

Wellness is a superior wellness application with millions of wonderful features.

Install

Just clone it to your favorite place:

git clone https://github.com/ahojukka5/wellness
cd wellness
npm install

Usage

To calculate body mass index:

npm run calculateBmi <height> <mass>

For example:

npm run calculateBmi 180 80

# output

Normal (healthy weight)

To calculate do you exercise enough:

npm run calculateExercises 2 1 0 2 4.5 0 3 1 0 4

# output

{ periodLength: 9,
  trainingDays: 6,
  success: false,
  rating: 2,
  ratingDescription: 'not too bad but could be better',
  target: 2,
  average: 1.7222222222222223 }