Const
Predefined engine configuration presets for common use cases.
All presets are functions that optionally accept configuration options.
import { parseString, EnginePresets } from 'web-csv-toolbox';// Use fastest available execution methodfor await (const record of parseString(csv, { engine: EnginePresets.fastest()})) { console.log(record);} Copy
import { parseString, EnginePresets } from 'web-csv-toolbox';// Use fastest available execution methodfor await (const record of parseString(csv, { engine: EnginePresets.fastest()})) { console.log(record);}
import { parseString, EnginePresets, WorkerPool } from 'web-csv-toolbox';const pool = new WorkerPool({ maxWorkers: 4 });for await (const record of parseString(csv, { engine: EnginePresets.fastest({ workerPool: pool })})) { console.log(record);} Copy
import { parseString, EnginePresets, WorkerPool } from 'web-csv-toolbox';const pool = new WorkerPool({ maxWorkers: 4 });for await (const record of parseString(csv, { engine: EnginePresets.fastest({ workerPool: pool })})) { console.log(record);}
Predefined engine configuration presets for common use cases.
All presets are functions that optionally accept configuration options.