Tiny CSV string parser

Usage no npm install needed!

<script type="module">
  import cfwareCsvParse from 'https://cdn.skypack.dev/@cfware/csv-parse';


@cfware/csv-parse NPM Version

Tiny CSV string parser


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.


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.