Skip to content

Commit

Permalink
docs(csv-parse): comment_no_infix sample
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Aug 25, 2023
1 parent c3347b1 commit 5ad98c4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/csv-parse/samples/option.comment_no_infix.js
@@ -0,0 +1,15 @@

import assert from 'assert';
import { parse } from 'csv-parse/sync';

const output = parse(`
# Illustrate the usage of comment_no_infix
a,b#,c
`.trim(), {
comment: '#',
comment_no_infix: true
});

assert.deepStrictEqual(output, [
['a', 'b#', 'c']
]);

0 comments on commit 5ad98c4

Please sign in to comment.