Skip to content

Commit 5ad98c4

Browse files
committed
docs(csv-parse): comment_no_infix sample
1 parent c3347b1 commit 5ad98c4

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
import assert from 'assert';
3+
import { parse } from 'csv-parse/sync';
4+
5+
const output = parse(`
6+
# Illustrate the usage of comment_no_infix
7+
a,b#,c
8+
`.trim(), {
9+
comment: '#',
10+
comment_no_infix: true
11+
});
12+
13+
assert.deepStrictEqual(output, [
14+
['a', 'b#', 'c']
15+
]);

0 commit comments

Comments
 (0)