Module: workers/node-utils

workers/node-utils

helper script for running Web Workers in node: make workers that run via worker_threads module appear like workers that run in a browser environment:
  • provide global variable self
  • provide onmessage field/hook
  • provide postMessage function
  • provide importScripts() function