AngelMunoz / async-json-to-csv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nodejs Async Streams

this is a trivial example on how to create an http request, pull json data (which we know it contains the same structure) and then creating a csv file from it using Node Streams, this sample compares how node streams would normally be used vs the new and shiny async/await way to use node streams, please note that async iteration over streams is still at the tim of writing an experimental feature.

Requires

Requires Node 10+ for stream async iteration

Install

pnpm install # or npm install

Run

node index.js normal

or

node index.js async

If you are using VsCode, you can select between the two debug configurations to run your chosen sample and put breakpoints where needed

About


Languages

Language:JavaScript 100.0%