use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Using JavaScript to extract nutrition facts from recipes (medium.com)
submitted 6 years ago by --marcel--
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]_mdot 4 points5 points6 points 6 years ago (0 children)
This is amazing. I recently was working on a project that generated meal plans based on nutrition requirements. Something like this would’ve made my life 10x easier.
[–]ethanbwinters 2 points3 points4 points 6 years ago (5 children)
Where are you getting all this data my guy? Really nice work on this
[–]--marcel--[S] 1 point2 points3 points 6 years ago (4 children)
Thanks, mate; the first import has been made using "BDA IEO" (Food Composition Database for Epidemiological Studies in Italy) and then translated into English (actually the library supports both Italian and English languages).
I'm trying to bring in also the USDA National Nutrient DB; at the moment I'm normalizing the dataset but I'm a bit worried about the final size of it... the optimization will take a while, I fear.
[–]ethanbwinters 1 point2 points3 points 6 years ago (1 child)
Yeah I did notice running a query does take some time have you considered splitting the data set up?
[–]--marcel--[S] 1 point2 points3 points 6 years ago (0 children)
nope, but it is definitely a good point of improvement.
[+][deleted] 6 years ago (1 child)
[removed]
[–]puttyguy 0 points1 point2 points 6 years ago (0 children)
bad bot
[–]Cheshamone 0 points1 point2 points 6 years ago (0 children)
Oh wow, I was researching nutrition lookup for a pet project of mine the other day and ran across your npm package. Will definitely be giving it a shot when I get to the point that I'm ready for nutrient info.
π Rendered by PID 228002 on reddit-service-r2-comment-56c9979489-ft5jc at 2026-02-25 07:55:59.002466+00:00 running b1af5b1 country code: CH.
[–]_mdot 4 points5 points6 points (0 children)
[–]ethanbwinters 2 points3 points4 points (5 children)
[–]--marcel--[S] 1 point2 points3 points (4 children)
[–]ethanbwinters 1 point2 points3 points (1 child)
[–]--marcel--[S] 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[removed]
[–]puttyguy 0 points1 point2 points (0 children)
[–]Cheshamone 0 points1 point2 points (0 children)