CSV string to parse
Async iterable iterator of records.
If you want array of records, use parseString.toArray function.
Performance Characteristics:
Execution Strategies:
Control how parsing is executed using the engine option:
engine: { worker: false } - No overhead, good for small filesengine: { worker: true } - Offloads parsing, good for large filesengine: { wasm: true } - Fast parsing, limited to UTF-8 and double-quotesengine: { worker: true, wasm: true } - Worker + WASM for maximum performanceUse EnginePresets for convenient configurations:
import { parseString, EnginePresets } from 'web-csv-toolbox';
// Use fastest available execution method
for await (const record of parseString(csv, {
engine: EnginePresets.fastest()
})) {
console.log(record);
}
Parse CSV string to records.
CSV string to parse
Async iterable iterator of records.
If you want array of records, use parseString.toArray function.
Performance Characteristics:
Execution Strategies:
Control how parsing is executed using the engine option:
engine: { worker: false } - No overhead, good for small filesengine: { worker: true } - Offloads parsing, good for large filesengine: { wasm: true } - Fast parsing, limited to UTF-8 and double-quotesengine: { worker: true, wasm: true } - Worker + WASM for maximum performanceUse EnginePresets for convenient configurations:
import { parseString, EnginePresets } from 'web-csv-toolbox';
// Use fastest available execution method
for await (const record of parseString(csv, {
engine: EnginePresets.fastest()
})) {
console.log(record);
}
Parse CSV string to records.
CSV string to parse
Parsing options. See ParseOptions.
Async iterable iterator of records.
If you want array of records, use parseString.toArray function.
Performance Characteristics:
Execution Strategies:
Control how parsing is executed using the engine option:
engine: { worker: false } - No overhead, good for small filesengine: { worker: true } - Offloads parsing, good for large filesengine: { wasm: true } - Fast parsing, limited to UTF-8 and double-quotesengine: { worker: true, wasm: true } - Worker + WASM for maximum performanceUse EnginePresets for convenient configurations:
import { parseString, EnginePresets } from 'web-csv-toolbox';
// Use fastest available execution method
for await (const record of parseString(csv, {
engine: EnginePresets.fastest()
})) {
console.log(record);
}
Parse CSV string to records.
CSV string to parse
Optionaloptions: ParseOptions<Header, Delimiter, Quotation>Parsing options. See ParseOptions.
Async iterable iterator of records.
If you want array of records, use parseString.toArray function.
Performance Characteristics:
Execution Strategies:
Control how parsing is executed using the engine option:
engine: { worker: false } - No overhead, good for small filesengine: { worker: true } - Offloads parsing, good for large filesengine: { wasm: true } - Fast parsing, limited to UTF-8 and double-quotesengine: { worker: true, wasm: true } - Worker + WASM for maximum performanceUse EnginePresets for convenient configurations:
import { parseString, EnginePresets } from 'web-csv-toolbox';
// Use fastest available execution method
for await (const record of parseString(csv, {
engine: EnginePresets.fastest()
})) {
console.log(record);
}
Parse CSV string to records.
CSV string to parse
Optionaloptions: ParseOptions<readonly string[], ",", "\"">Parsing options. See ParseOptions.
Async iterable iterator of records.
If you want array of records, use parseString.toArray function.
Performance Characteristics:
Execution Strategies:
Control how parsing is executed using the engine option:
engine: { worker: false } - No overhead, good for small filesengine: { worker: true } - Offloads parsing, good for large filesengine: { wasm: true } - Fast parsing, limited to UTF-8 and double-quotesengine: { worker: true, wasm: true } - Worker + WASM for maximum performanceUse EnginePresets for convenient configurations:
import { parseString, EnginePresets } from 'web-csv-toolbox';
// Use fastest available execution method
for await (const record of parseString(csv, {
engine: EnginePresets.fastest()
})) {
console.log(record);
}
Parse CSV string to records.