Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csv-libsonnet

Jsonnet library to parse CSV files.

It parses files according to RFC4180. It also accepts LF as line breaks and the TEXTDATA is as liberal as Jsonnet can be.

Tested with test suite from max-mapper/csv-spectrum and sineemore/csv-test-data, passing a total of 29 test cases.

Usage

local parser = import 'github.com/Duologic/csv-libsonnet/main.libsonnet';
local csv = importstr 'path/to/your.csv';

parser.parse(csv) // with headers, returns an object for each record
parser.parseRecords(csv) // without headers, returns an array for each record

About

Jsonnet library to parse CSV files.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages