Option delimiter
Defines the character(s) used to delimitate the fields inside a record. A single value or an array of values are accepted. A value can be a string or a Buffer. It can not be empty, and it can contain several characters. When not defined, the default value is a comma.
- Type:
string|Buffer|[string|Buffer]
- Optional
- Default:
","
(a one character comma) - Since: 0.0.1
- Related:
record_delimiter
,quote
,escape
— see Available Options
It is not possible to escape a delimiter. A field must be quoted if it contains a delimiter which should not be interpreted as such.
Single value delimiter
In the delimiter example, fields are separated by a two characters delimiter value.
Array of delimiter values
Delimiter can be made of multiple values when defined as an array: