NimbleCSV v0.3.0 NimbleCSV.RFC4180 View Source

A CSV parser that uses comma as separator and double-quotes as escape according to RFC4180.

Link to this section Summary

Functions

Eagerly dump an enumerable into iodata (a list of binaries and bytes and other lists)

Lazily dumps from an enumerable to a stream

Eagerly parses CSV from an enumerable and returns a list of rows

Lazily parses CSV from a stream and returns a stream of rows

Eagerly parses CSV from a string and returns a list of rows

Link to this section Functions

Link to this function dump_to_iodata(enumerable) View Source
dump_to_iodata(Enumerable.t) :: iodata

Eagerly dump an enumerable into iodata (a list of binaries and bytes and other lists).

Link to this function dump_to_stream(enumerable) View Source
dump_to_stream(Enumerable.t) :: Enumerable.t

Lazily dumps from an enumerable to a stream.

It returns a stream that emits each row as iodata.

Link to this function parse_enumerable(enumerable, opts \\ []) View Source
parse_enumerable(Enumerable.t, keyword) :: [[binary]]

Eagerly parses CSV from an enumerable and returns a list of rows.

Link to this function parse_stream(stream, opts \\ []) View Source
parse_stream(Enumerable.t, keyword) :: Enumerable.t

Lazily parses CSV from a stream and returns a stream of rows.

Link to this function parse_string(string, opts \\ []) View Source
parse_string(binary, keyword) :: [[binary]]

Eagerly parses CSV from a string and returns a list of rows.