Thread emancipator
Thread business detector
Install
$ npm install --save thread-emancipator
Usage
$ thread-emancipator path-to-script.js
or
const threadEmancipator = require('thread-emancipator');
const isThreadBusy = await threadEmancipator('path-to-script.js', 'application-url');
// default application-url is https://www.google.com, if your script is application specific then yous your own url
Motivation
@samccone's talk at Chrome Dev Summit one of the ideas was using WebWorkers
License
MIT