node-workerize

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i node-workerize

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

3.39 kB

Total Files

5

Last publish

Collaborators

  • starkwang