Skip to content

Commit

Permalink
refactor(csv-stringify): rename variable in sample
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Aug 25, 2023
1 parent 256d398 commit 57cee1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/csv-stringify/samples/api.async.iterator.js
Expand Up @@ -5,7 +5,7 @@ import { stringify } from 'csv-stringify';

(async () => {
// Initialise the parser by generating random records
const parser = generate({
const stringifier = generate({
length: 1000,
objectMode: true,
seed: true
Expand All @@ -17,7 +17,7 @@ import { stringify } from 'csv-stringify';
// Report start
process.stdout.write('start\n');
// Iterate through each records
for await (const row of parser) {
for await (const row of stringifier) {
// Report current line
process.stdout.write(`${count++} ${row}\n`);
// Fake asynchronous operation
Expand Down

0 comments on commit 57cee1b

Please sign in to comment.