JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 194
  • Score
    100M100P100Q92485F
  • License MIT

This plugin allows the [Jsonic](https://jsonic.senecajs.org) JSON parser to support csv syntax.

Package Exports

  • @jsonic/csv
  • @jsonic/csv/dist/csv.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@jsonic/csv) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@jsonic/csv

A Jsonic syntax plugin that parses CSV text into objects or arrays, with support for headers, quoted fields, custom delimiters, streaming, and strict/non-strict modes. Available for TypeScript and Go.

npm version build Coverage Status Known Vulnerabilities DeepScan grade Maintainability

Voxgig This open source module is sponsored and supported by Voxgig.

Quick example

TypeScript

import { Jsonic } from 'jsonic'
import { Csv } from '@jsonic/csv'

const parse = Jsonic.make().use(Csv)

parse("name,age\nAlice,30\nBob,25")
// [{ name: 'Alice', age: '30' }, { name: 'Bob', age: '25' }]

parse('a,b\n1,"hello, world"')
// [{ a: '1', b: 'hello, world' }]

Go

import csv "github.com/jsonicjs/csv/go"

result, _ := csv.Parse("name,age\nAlice,30\nBob,25")
// [{name:Alice age:30} {name:Bob age:25}]

Documentation

Full documentation following the Diataxis framework (tutorials, how-to guides, explanation, reference):

License

Copyright (c) 2021-2025 Richard Rodger and other contributors, MIT License.