# @mohdnajwan/bmi-calculator

> BMI calculator that accepts metric and imperial units

Latest version **1.0.2** (published 2020-07-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mohdnajwan/bmi-calculator
pnpm add @mohdnajwan/bmi-calculator
yarn add @mohdnajwan/bmi-calculator
bun add @mohdnajwan/bmi-calculator
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-07-11 |
| First published | 2020-07-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Najwan |
| Maintainers | mohdnajwan |
| Keywords | bmi-calculator, mohdnajwan, bmi calculator |

## Links

- npm: https://www.npmjs.com/package/@mohdnajwan/bmi-calculator
- npm.io page: https://npm.io/package/@mohdnajwan/bmi-calculator

## Recent versions

- 1.0.2 (latest) — 2020-07-11
- 1.0.1 — 2020-07-11
- 1.0.0 — 2020-07-11

## README

# @mohdnajwan/bmi-calculator

![alt](https://img.shields.io/badge/npm-1.0.1-blue)

A BMI calculator that accept metric and imperial units

## Install
```javascript
$ npm install @mohdnajwan/bmi-calculator
```

## Import
```javascript
const { BMI } = require('@mohdnajwan/bmi-calculator')
```

## Usage
Metric units weight in kg and height in meter
```javascript
// BMI(weight, height)

const myBMI = BMI(52.2,1.72)
// => 17.2
```

Imperial units Weight in lbs and height in inch.
Just add 'imperial' in the parameter after height.
```javascript
// BMI(weight,height,unit)

const myBMI = BMI(114.64, 67.7, 'imperial')
// => 17.2
```

---
_Source: https://npm.io/package/@mohdnajwan/bmi-calculator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
