Module

Node.Stream.CSV.Parse

Package
purescript-csv-stream
Repository
cakekindel/purescript-csv-stream

#CSVRead Source

data CSVRead

#CSVParser Source

type CSVParser :: Row Type -> Typetype CSVParser r = Stream (csv :: CSVRead, read :: Read, write :: Write | r)

Stream transforming chunks of a CSV file into parsed purescript objects.

The CSV contents may be piped into this stream as Buffer or String chunks.

#Config Source

type Config :: Row Type -> Row Typetype Config r = (bom :: Boolean, comment :: String, comment_no_infix :: Boolean, delimiter :: String, encoding :: String, escape :: String, from :: Int, from_line :: Int, group_columns_by_name :: Boolean, ignore_last_delimiters :: Boolean, info :: Boolean, ltrim :: Boolean, max_record_size :: Int, quote :: String, raw :: Boolean, record_delimiter :: String, relax_column_count :: Boolean, rtrim :: Boolean, skip_empty_lines :: Boolean, skip_records_with_empty_values :: Boolean, skip_records_with_error :: Boolean, to :: Int, to_line :: Int, trim :: Boolean | r)

https://csv.js.org/parse/options/

#make Source

make :: forall @config @missing @extra. Union config missing (Config extra) => Record config -> Effect (CSVParser ())

Create a CSVParser

#dataH Source

dataH :: forall a. EventHandle1 (CSVParser a) (Array String)

data event. Emitted when a CSV record has been parsed.

#makeImpl Source

makeImpl :: forall r. Foreign -> Effect (Stream r)

FFI

#readImpl Source

readImpl :: forall r. Stream r -> Effect (Nullable (Array String))

FFI

#recordToForeign Source

recordToForeign :: forall r. Record r -> Object Foreign

FFI