A CSV parser for the Gleam programming language
import csv
csv.parse("id,value\n1,one\n2,two\n")
// csv.Csv(
// headers: ["id", "value"],
// records: [
// ["1", "one"],
// ["2", "two"]
// ]
// )
- Support
\r
/\n
combinations - Strip whitespace
- Support quoting
- Move to a full blown parser or don't support quoting for now
- Improve documentation
# Build the project
rebar3 compile
# Run the eunit tests
rebar3 eunit
# Run the Erlang REPL
rebar3 shell
If available in Hex
this package can be installed by adding csv
to your rebar.config
dependencies:
{deps, [
csv
]}.