Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 701 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 701 Bytes

@cfware/csv-parse NPM Version

Tiny CSV string parser

Usage

import parse from '@cfware/csv-parse';

parse(string, maxRows = Infinity)

Parse the JavaScript string into an array of rows where each row is an array of columns. Setting maxRows causes the parse to escape early.

Attribution

This is based on code from dom-csv.js which is based on ucsv. The goal of this rewrite is have the smallest possible ES module which parses CSV.