Closed leeoniya closed 1 month ago
Thanks for your help! It looks like this is failing to close a quoted string because I look for "\n" or "," after the quotes conclude, and this file instead has "\r\n".
Will fix in both, thanks.
I've made it support CRLF now. I should just use uDSV ;-)
I should just use uDSV ;-)
haha, wait for the benchmarks first, in Bun.js this time! :P
pretty good :)
poor PapaParse chokes on quotes :(
Bun.js:
what's really weird is that tiddlycsv
doesn't parse correctly using identical code in Node:
the code i use is really simple:
module.exports = {
name: 'tiddlycsv',
repo: 'https://github.com/samthor/tiddlycsv',
load: async () => {
const { parseCSV } = await import('tiddlycsv');
return (csvStr, path) => new Promise(res => {
let rows = parseCSV(csvStr);
res(rows);
});
},
};
hey @samthor!
i wanted to take this thing for a spin, but ran into the same issue as i did with https://github.com/samthor/but-csv.
it looks like this free zipcodes file cannot be properly parsed by either lib.
sample: