BMI processor is a package that processes the json data with heights and weights and categorize the health risk and bmi category
NodeJS
- binary-search using d3-array library bisect function to get the range where bmi falls in
- json library used for rreading and writing json input/ouput files
- MOCHA for testing each function in the package to ensure correct CI
- Used github actions for CD to publish the package in NPM on every release
This package is built using default node libraries
npm install bmi_processor
- take json file of hights and weights sample data
- give input_file_name and ouput_file_name
Example:
const bmi = require('./bmi_processor');
let s = async function () {
await bmi.processFile('/bmiProcessor/assets/testing_data.json', '/bmiProcessor/assets/testing_out.json')
}
console.log(s());
- plotting analytics for the processed json data
MIT