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\nmac: equivalent of\rwindows: equivalent of\r\nascii: equivalent of\u001eunicode: 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: