Skip to content

Commit

Permalink
fix: default options
Browse files Browse the repository at this point in the history
  • Loading branch information
willfarrell committed Aug 27, 2022
1 parent a274ba5 commit df280e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "csv-rex",
"version": "0.4.0",
"version": "0.4.1",
"description": "A tiny and fast CSV parser for JavaScript.",
"type": "module",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions parse-mini.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// chunkSize >> largest expected row
const defaultOptions = {
header: true, // false: return array; true: detect headers and return json; [...]: use defined headers and return json
newlineChar: '\r\n', // undefined: detect newline from file; '\r\n': Windows; '\n': Linux/Mac
delimiterChar: '',
newlineChar: '\r\n', // '': detect newline from chunk; '\r\n': Windows; '\n': Linux/Mac
delimiterChar: ',', // '': detect delimiter from chunk
// quoteChar: '"',
// escapeChar: '"', // default: `quoteChar`

Expand Down
4 changes: 2 additions & 2 deletions parse.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// chunkSize >> largest expected row
const defaultOptions = {
header: true, // false: return array; true: detect headers and return json; [...]: use defined headers and return json
newlineChar: '\r\n', // undefined: detect newline from file; '\r\n': Windows; '\n': Linux/Mac
delimiterChar: '',
newlineChar: '', // '': detect newline from chunk; '\r\n': Windows; '\n': Linux/Mac
delimiterChar: '', // '': detect delimiter from chunk
quoteChar: '"',
// escapeChar: '"', // default: `quoteChar`

Expand Down

0 comments on commit df280e5

Please sign in to comment.