WorkerOptions.argv - Node documentation
property WorkerOptions.argv

Usage in Deno

import { type WorkerOptions } from "node:worker_threads";

List of arguments which would be stringified and appended to process.argv in the worker. This is mostly similar to the workerData but the values will be available on the global process.argv as if they were passed as CLI options to the script.

Type

any[] | undefined