Detalhes do pacote

@pirxpilot/csv-parse

pirxpilot86MIT1.0.0

Minimal CSV parser implemented using web TransformStream

csv, parser, webstreams

readme (leia-me)

NPM version Build Status Dependency Status

@pirxpilot/csv-parse

Minimal CSV parser implemented using web TransformStream

Install

$ npm install --save @pirxpilot/csv-parse

Usage

const res = await fetch('http://example.com/cities.csv');
const stream = res.body
  .pipeThrough(new TextDecoderStream())
  .pipeThrough(new CsvLineStream({ trim: true }));

for await (const line of stream) {
  console.log('Line: %s', line);
}

License

MIT © Damian Krzeminski