![](https://i0.wp.com/www.jimnio.com/wp-content/uploads/2019/02/blog_single_1.jpg?resize=150%2C150&ssl=1)
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' }