UNPKG

node-worker-threads-pool-ts

Version:

Simple worker threads pool using Node's worker_threads module. Compatible with ES6+ Promise, Typescript, Async/Await.

5 lines (4 loc) 132 B
import path from "path"; require("ts-node").register(); const script = process.argv.pop() as string; require(path.resolve(script));