wolfram-fit
Simple Wrapper for Wolfram|Alpha, focusing specifically on fitness and nutritional information. Pass getFitInfo some input that Wolphram|Alpha could understand (ex: '2 chicken breasts + 1 tbsp salsa + 1/2 medium onion + 2 tsp oil'), along with your wolfram appApi (instructions to get one here), and a callback to handle the result. The callback is passed an error followed by an object with the following values: totalCalories, totalFat, saturatedFat, cholesterol, sodium, totalCarbohydrates, fiber, sugar, protein. See example usage.
The following example is self contained.
// server.jsconst app = ;const http = ;const wolframFit = ; app; http;
running 'node server.js', and then navigating in your browser to 'http://localhost:3000' will load the following json on the page:
Have Fun :)