Skip to content

eterps/csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csv

A CSV parser for the Gleam programming language

Usage

import csv

csv.parse("id,value\n1,one\n2,two\n")
// csv.Csv(
//  headers: ["id", "value"],
//  records: [
//               ["1", "one"],
//               ["2", "two"]
//           ]
// )

TODO

  • Support \r/\n combinations
  • Strip whitespace
  • Support quoting
  • Move to a full blown parser or don't support quoting for now
  • Improve documentation

Quick start

# Build the project
rebar3 compile

# Run the eunit tests
rebar3 eunit

# Run the Erlang REPL
rebar3 shell

Installation

If available in Hex this package can be installed by adding csv to your rebar.config dependencies:

{deps, [
    csv
]}.

About

A CSV parser library for the Gleam programming language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages