function-to-worker (npm): This package can get function and  wrap it in web worker 
Keywords: worker|promise|webworker|web worker