https://github.com/ahojukka5/wellness
Superior wellness JavaScript app
https://github.com/ahojukka5/wellness
bmi exercises wellness
Last synced: 6 months ago
JSON representation
Superior wellness JavaScript app
- Host: GitHub
- URL: https://github.com/ahojukka5/wellness
- Owner: ahojukka5
- License: mit
- Created: 2020-05-06T22:05:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T02:27:34.000Z (almost 3 years ago)
- Last Synced: 2025-02-10T13:30:57.156Z (11 months ago)
- Topics: bmi, exercises, wellness
- Language: TypeScript
- Size: 637 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wellness
[![Build Status][travis-img]][travis-url]
[![Coverage Status][coveralls-img]][coveralls-url]

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:
```bash
git clone https://github.com/ahojukka5/wellness
cd wellness
npm install
```
## Usage
To calculate body mass index:
```bash
npm run calculateBmi
```
For example:
```bash
npm run calculateBmi 180 80
# output
Normal (healthy weight)
```
To calculate do you exercise enough:
```bash
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 }
```
[travis-img]: https://travis-ci.org/ahojukka5/wellness.svg?branch=master
[travis-url]: https://travis-ci.org/ahojukka5/wellness
[coveralls-img]: https://coveralls.io/repos/github/ahojukka5/wellness/badge.svg?branch=master
[coveralls-url]: https://coveralls.io/github/ahojukka5/wellness?branch=master