Skip to content

Commit

Permalink
docs(csv-parse): prettify samples
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Jan 9, 2024
1 parent 128a8e2 commit 9c72a92
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 @@ -2,7 +2,7 @@
import fs from 'node:fs';
import { parse } from 'csv-parse';

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

const __dirname = new URL( '.', import.meta.url).pathname
const __dirname = new URL('.', import.meta.url).pathname;

const parser = parse({delimiter: ';'}, function(err, data){
console.log(data);
Expand Down
2 changes: 1 addition & 1 deletion packages/csv-parse/samples/recipe.async.iterator.js
Expand Up @@ -2,7 +2,7 @@
import fs from 'node:fs';
import { parse } from 'csv-parse';

const __dirname = new URL( '.', import.meta.url).pathname
const __dirname = new URL('.', import.meta.url).pathname;

const processFile = async () => {
const records = [];
Expand Down

0 comments on commit 9c72a92

Please sign in to comment.