Skip to content

Commit

Permalink
Parse, not unparse
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-vasconcelos committed Jan 9, 2024
1 parent f684332 commit fcdf460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse-datasets/parsers/facilities.encm.parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = async () => {
// Fetch file from cloned repository
console.log(`⤷ Open data file...`);
const allEncmRaw = fs.readFileSync(`${settings.BASE_DIR}/facilities/encm/encm.csv`, { encoding: 'utf-8' });
const allEncmCsv = Papa.unparse(allEncmRaw);
const allEncmCsv = Papa.parse(allEncmRaw);

console.log(allEncmCsv);

Expand Down

0 comments on commit fcdf460

Please sign in to comment.