Skip to content

Commit df280e5

Browse files
committed
fix: default options
1 parent a274ba5 commit df280e5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "csv-rex",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "A tiny and fast CSV parser for JavaScript.",
55
"type": "module",
66
"files": [

parse-mini.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// chunkSize >> largest expected row
22
const defaultOptions = {
33
header: true, // false: return array; true: detect headers and return json; [...]: use defined headers and return json
4-
newlineChar: '\r\n', // undefined: detect newline from file; '\r\n': Windows; '\n': Linux/Mac
5-
delimiterChar: '',
4+
newlineChar: '\r\n', // '': detect newline from chunk; '\r\n': Windows; '\n': Linux/Mac
5+
delimiterChar: ',', // '': detect delimiter from chunk
66
// quoteChar: '"',
77
// escapeChar: '"', // default: `quoteChar`
88

parse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// chunkSize >> largest expected row
22
const defaultOptions = {
33
header: true, // false: return array; true: detect headers and return json; [...]: use defined headers and return json
4-
newlineChar: '\r\n', // undefined: detect newline from file; '\r\n': Windows; '\n': Linux/Mac
5-
delimiterChar: '',
4+
newlineChar: '', // '': detect newline from chunk; '\r\n': Windows; '\n': Linux/Mac
5+
delimiterChar: '', // '': detect delimiter from chunk
66
quoteChar: '"',
77
// escapeChar: '"', // default: `quoteChar`
88

0 commit comments

Comments
 (0)