An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# wellness

[![Build Status][travis-img]][travis-url]
[![Coverage Status][coveralls-img]][coveralls-url]
![Node.js CI](https://github.com/ahojukka5/wellness/workflows/Node.js%20CI/badge.svg)

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