parseURL and parseText are iterators. We could export helpers that return a consolidated object, eg:
const parsedText = parseAndConcatText(text)
const parsedURL = await parseAndConcatURL(url)
Which would be the consolidated format?
{
rows: string[][],
errors: ParseError[][],
meta: {
// Accumulated values
delimiter: string
newline: string
byteOffset: number
byteCount: number
charCount: number
}
}
Alternative:
it would be simpler, but maybe less useful, since the user would possibly still have to map to their own format.
parseURLandparseTextare iterators. We could export helpers that return a consolidated object, eg:Which would be the consolidated format?
Alternative:
it would be simpler, but maybe less useful, since the user would possibly still have to map to their own format.