body-type-calculator
v1.0.0
Published
This package includes functions to calculate body type based on four different measurements.
Downloads
2
Readme
Body-Type Calculator
This npm package calculates the body type based on four arguments. The four arguments are measurements of four different sections of body (Bust, Waist, High Hip, Hip) in this exact order.
Some basic information
Different people have different body shapes or types, therefore different measurements for dresses. This is particularly important for focusing on getting targeted outfit ideas. Even though there has been some research linking certain body shapes with some health risks, the body shape result of this calculator is not intended to be a serious indication of health or an ideal that must be met. Instead, waist-hip ratio, which is also shown in the results of this calculator is a better indicator of health.
This package is developed in reference to the algorithm available here.
Getting started
Download and installation
$ npm i body-type-calculator
Usage
const body_type = require('body-type-calculator');
let bust, waist, highHip, hip = number;
const body_type = body_type(bust, waist, highHip, hip);
console.log(body_type);
Precautions
The measurements should be done in inches. Exactly four numbers should be passed as arguments, no bigger than fifteen inches.
Acknowledgements
- Thanks for the algorithm provide here.