@pirxpilot/csv-parse

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @pirxpilot/csv-parse

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

4.77 kB

Total Files

4

Last publish

Collaborators

  • pirxpilot