Skip to content

starkwang/node-workerize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
})

About

Easily make function running in worker thread.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published