node-workerize
v0.0.1
Published
Easily make function running in worker thread.
Downloads
2
Readme
node-workerize
Install
npm install node-workerize
Usage
const workerize = require('node-workerize')(__filename)
function sum(a, b) {
return a + b
}
const workerizeSum = workerize(sum)
workerizeAdd(11, 22).then(result => {
// result === 33
})