@koeroesi86/node-worker
v23.3.4408728827-main
Published
NodeJS implementation of WebWorkers
Downloads
10
Readme
Node Worker
NodeJS implementation of WebWorkers
interface Worker {
terminate: void;
postMessage: void;
onmessage: Function;
onerror: Function;
addEventListener: void;
removeEventListener: void;
dispatchEvent: void;
}
Usage
const Worker = require('@koeroesi86/node-worker');
const instance = new Worker('ls');
instance.terminate();
Or checkout the pproject and run
yarn example