Skip to content

Commit

Permalink
refactor: wip parsing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dtbuchholz committed Jul 19, 2024
1 parent 2639b0c commit f790e58
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/cli/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,13 @@ export const logger = {

export const parseCsvFile = async function (file: string): Promise<string[][]> {
return await new Promise(function (resolve, reject) {
const parser = parse();
// custom parsing
const parserOptions = {
skipEmptyLines: true,
trim: true,
};

const parser = parse(parserOptions);
const rows: any[] = [];

parser.on("readable", function () {
Expand Down

0 comments on commit f790e58

Please sign in to comment.