From 57cee1b28812302f9fd6f551763974abf7a8e882 Mon Sep 17 00:00:00 2001 From: David Worms Date: Fri, 25 Aug 2023 14:52:43 +0200 Subject: [PATCH] refactor(csv-stringify): rename variable in sample --- packages/csv-stringify/samples/api.async.iterator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/csv-stringify/samples/api.async.iterator.js b/packages/csv-stringify/samples/api.async.iterator.js index af2f7222..173554f8 100644 --- a/packages/csv-stringify/samples/api.async.iterator.js +++ b/packages/csv-stringify/samples/api.async.iterator.js @@ -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 @@ -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