Const
Predefined engine configuration presets optimized for specific performance characteristics.
All presets are functions that optionally accept configuration options. Each preset is optimized for specific performance aspects:
import { parseString, EnginePresets } from 'web-csv-toolbox';// Use balanced preset for general-purpose CSV processingfor await (const record of parseString(csv, { engine: EnginePresets.balanced()})) { console.log(record);} Copy
import { parseString, EnginePresets } from 'web-csv-toolbox';// Use balanced preset for general-purpose CSV processingfor await (const record of parseString(csv, { engine: EnginePresets.balanced()})) { 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.balanced({ 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.balanced({ workerPool: pool })})) { console.log(record);}
Predefined engine configuration presets optimized for specific performance characteristics.
All presets are functions that optionally accept configuration options. Each preset is optimized for specific performance aspects: