

[wgl_button button_text=”NPM” css_animation=”bounceInLeft” size=”s” align=”right” link=”url:https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Ffitness-macros-calculator|||”]
[wgl_button button_text=”Github” css_animation=”bounceInRight” size=”s” link=”url:https%3A%2F%2Fgithub.com%2Fderfmilo%2Ffitness-macros-calculator|||”]
Created in 2017 a NodeJS NPM module to use the Mifflin Fitness Macros into a return value.
You can find the NPM link in the buttons above or use npm to install with terminal/NodeJs and NPM:
Run in terminal
npm i fitness-macros-calculator
Test values
var mifflin = require("fitness-macros-calculator");
var sum = mifflin.macros({weight: 132,height:{ft:6,in:1},birthday:481834906});
The test will return
return value = {
carbs : { weightloss : '137.0', weightmaintain : '218.0', weightgain : '259.0' },
calories : { weightloss : 1291.44, weightmaintain : 1547.0375, weightgain : 1668.1100000000001 },
fat : '36.0', protein : '103' }