audreyt / node-webworker-threads

Lightweight Web Worker API implementation with native threads
https://npmjs.org/package/webworker-threads
Other
2.3k stars 149 forks source link

How to include a node module in threadpool #148

Closed chetandev closed 7 years ago

chetandev commented 7 years ago

Hi can anyone please tell me how should i include a npm module in threadpool?

audreyt commented 7 years ago

Not easily. If you would like to require() native modules in a worker, please consider using the process-based tiny-worker instead. It does not use threads, but the WebWorker API is compatible.