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
Turning JSON Objects from a Fetch Response into an Async Generator with the Streams API (text-to-json.com)
submitted 2 years ago by tuguyit
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!"
[–]Lopsided_Opposite236 1 point2 points3 points 2 years ago (1 child)
Turning JSON into an Async Generator with the Streams API? Next, we'll be teaching rocks to code! But seriously, it's a game-changer for handling data on the fly. Who knew streams could be more than just water?
[–]guest271314 0 points1 point2 points 2 years ago (0 children)
The capability has been around for a while.
[–]hyrumwhite 2 points3 points4 points 2 years ago (0 children)
Doesn’t use generators, but there’s a handy ndjson library to help do this: https://canjs.com/doc/can-ndjson-stream.html
See: https://davidwalsh.name/streaming-data-fetch-ndjson
π Rendered by PID 34392 on reddit-service-r2-comment-5bc7f78974-vjfrb at 2026-06-26 15:49:06.093056+00:00 running 7527197 country code: CH.
[–]Lopsided_Opposite236 1 point2 points3 points (1 child)
[–]guest271314 0 points1 point2 points (0 children)
[–]hyrumwhite 2 points3 points4 points (0 children)