Skip to content

Commit

Permalink
docs(csv-stringify): record_delimiter sample
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Oct 5, 2023
1 parent 6e8a9ca commit 74bf680
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/csv-stringify/samples/option.record_delimiter.js
@@ -0,0 +1,13 @@

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

const records = stringify([
['a', 'b'],
['c', 'd']
], {
record_delimiter: '|',
eof: false,
});

assert.equal(records, 'a,b|c,d');

0 comments on commit 74bf680

Please sign in to comment.