Option quote
The quote
option defines the characters used to surround a field.
The presence of quotes around the field is optional and is automatically detected. The value can be one or multiple characters. The detection of quotes is disabled with the null
, false
and empty string values. it defaults to "
(double quote).
- Type:
string
|Buffer
|[string|Buffer]
- Optional
- Default:
"
(double quote) - Since: 0.0.1
- Related:
delimiter
,escape
,record_delimiter
,relax_quotes
— see Available Options
Default behavior
The quote
option default to "
. Fields do not need to be quoted as illustrated in this example:
Quotes inside the field
Quote characters present inside a field must be escaped. The default escape character is "
.
This example contains quotes inside the second field: