async-chunk-reader

node v11.15.0
version: 1.0.5
endpointsharetweet
const reader = require("async-chunk-reader"); const fs = require("fs") const https = require("https"); function main(){ const request = https.get( 'https://raw.githubusercontent.com/cemayan/async-chunk-reader/master/example/avocado.csv', async function(response) { const data = await reader .init({ chunk_size: 200, input_file: response }) .get(); for await(let chunk of data){ console.log(chunk.map(d=>d.value)[0]) } }); } main();
Loading…

no comments

    sign in to comment