Option record_delimiter
The record_delimiter
option define the characters used to separate each record from one another.
- Type:
Buffer
,string
- Optional
- Default:
\n
- Since: 0.0.1
- Related:
delimiter
,eof
— see Available Options
You can pass any value of at least one character in the form of a string or a Buffer. Special values include:
unix
: equivalent of\n
mac
: equivalent of\r
windows
: equivalent of\r\n
ascii
: equivalent of\u001e
unicode
: equivalent of\u2028
History
This option was named rowDelimiter
until version 4.3.1.
Example
The default value is the newline ASCII character \n
. The example defines the custom pipe character instead: