Skip to content

Koeroesi86/node-worker

Repository files navigation

Node Worker

Publish

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

About

NodeJS implementation of WebWorkers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published