web-csv-toolbox - v0.14.0
    Preparing search index...

    Interface ReusableWorkerPoolOptions

    Options for configuring the ReusableWorkerPool.

    interface ReusableWorkerPoolOptions {
        maxWorkers?: number;
        workerURL?: string | URL;
    }
    Index

    Properties

    maxWorkers?: number

    Maximum number of worker instances in the pool.

    1
    

    Security Recommendation: For production applications that accept user uploads, set this to a reasonable limit (e.g., 2-4) to prevent resource exhaustion attacks. Without limits, malicious users could spawn unlimited workers by uploading multiple large CSV files simultaneously, leading to memory exhaustion and DoS.

    // Recommended for production
    const pool = new ReusableWorkerPool({ maxWorkers: 4 });
    workerURL?: string | URL

    Custom worker URL to use for all workers in the pool.