Skip to content

Commit

Permalink
docs(csv-parse): replace console.log by info
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Feb 27, 2024
1 parent 28088bc commit 4d61f49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/csv-parse/samples/columns-discovery.js
Expand Up @@ -7,7 +7,7 @@ const __dirname = new URL('.', import.meta.url).pathname;
// Using the first line of the CSV data to discover the column names
const rs = fs.createReadStream(__dirname+'/columns-discovery.in');
const parser = parse({columns: true}, function(err, data){
console.log(data);
console.info(data);
});
rs.pipe(parser);

Expand Down
2 changes: 1 addition & 1 deletion packages/csv-parse/samples/fs_read.js
Expand Up @@ -5,7 +5,7 @@ import { parse } from 'csv-parse';
const __dirname = new URL('.', import.meta.url).pathname;

const parser = parse({delimiter: ';'}, function(err, data){
console.log(data);
console.info(data);
});

fs.createReadStream(__dirname+'/fs_read.csv').pipe(parser);
2 changes: 1 addition & 1 deletion packages/csv-parse/samples/option.to.js
Expand Up @@ -11,7 +11,7 @@ a,b
columns: true,
to: 2
}, function(err, records){
console.log(err, records);
console.info(err, records);
assert.deepStrictEqual(
records, [{
a: '1',
Expand Down

0 comments on commit 4d61f49

Please sign in to comment.