{"_id":"tiny-worker","_rev":"111686","name":"tiny-worker","description":"Tiny WebWorker for Server","dist-tags":{"latest":"2.3.0"},"maintainers":[{"name":"npm:avoidwork","email":""}],"time":{"modified":"2021-06-03T10:43:30.000Z","created":"2015-09-29T22:28:15.636Z","2.3.0":"2019-09-20T17:30:30.678Z","2.2.0":"2019-04-11T11:49:38.854Z","2.1.2":"2018-03-01T12:01:53.882Z","2.1.1":"2017-05-04T12:07:01.456Z","2.1.0":"2017-04-20T11:29:53.579Z","2.0.3":"2017-03-13T01:33:24.686Z","2.0.2":"2017-03-05T15:42:01.405Z","2.0.1":"2017-01-05T01:38:19.230Z","2.0.0":"2017-01-05T01:29:37.119Z","1.1.7":"2016-10-03T12:20:37.359Z","1.1.6":"2016-10-03T11:59:25.783Z","1.1.5":"2016-08-05T11:04:43.510Z","1.1.4":"2016-06-15T23:39:25.073Z","1.1.3":"2016-06-15T23:34:50.957Z","1.1.2":"2016-06-15T23:28:43.661Z","1.1.1":"2015-10-14T20:28:35.238Z","1.1.0":"2015-10-14T15:41:40.633Z","1.0.4":"2015-09-30T10:45:58.386Z","1.0.3":"2015-09-30T00:47:23.047Z","1.0.2":"2015-09-30T00:44:54.912Z","1.0.1":"2015-09-30T00:43:30.294Z","1.0.0":"2015-09-30T00:41:27.642Z","0.1.0":"2015-09-29T22:28:15.636Z"},"users":{"hugov":true,"ys_sidson_aidson":true,"shanewholloway":true,"kevteljeur":true,"stevenvachon":true,"leonexis":true,"touskar":true,"duzun":true},"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"versions":{"2.3.0":{"name":"tiny-worker","version":"2.3.0","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-core":"^6.26.3","babel-preset-env":"^1.7.0","grunt":"^1.0.4","grunt-babel":"^7.0.0","grunt-cli":"^1.3.2","grunt-contrib-nodeunit":"^2.0.0","grunt-contrib-watch":"^1.1.0","grunt-eslint":"^22.0.0"},"dependencies":{"esm":"^3.2.25"},"gitHead":"1939cf6339daa23ddfd8cf45e98402af730d53b7","_id":"tiny-worker@2.3.0","_nodeVersion":"12.9.1","_npmVersion":"6.10.2","dist":{"shasum":"715ae34304c757a9af573ae9a8e3967177e6011e","size":4833,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-2.3.0.tgz"},"maintainers":[{"name":"npm:avoidwork","email":""}],"_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tiny-worker_2.3.0_1569000630541_0.5485104119551711"},"_hasShrinkwrap":false,"publish_time":1569000630678,"_cnpm_publish_time":1569000630678},"2.2.0":{"name":"tiny-worker","version":"2.2.0","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-core":"^6.26.2","babel-preset-env":"^1.7.0","grunt":"^1.0.4","grunt-babel":"^7.0.0","grunt-cli":"^1.3.2","grunt-contrib-nodeunit":"^2.0.0","grunt-contrib-watch":"^1.1.0","grunt-eslint":"^21.0.0"},"dependencies":{"esm":"^3.2.22"},"gitHead":"38e0aba842358fa78ac72662981c63331afe40d6","_id":"tiny-worker@2.2.0","_nodeVersion":"11.13.0","_npmVersion":"6.7.0","dist":{"shasum":"056ce92d424c8d2c6f9fb8f9a5d2e3cdcb908bca","size":4782,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-2.2.0.tgz"},"maintainers":[{"name":"npm:avoidwork","email":""}],"_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tiny-worker_2.2.0_1554983378739_0.16677018761448625"},"_hasShrinkwrap":false,"publish_time":1554983378854,"_cnpm_publish_time":1554983378854},"2.1.2":{"name":"tiny-worker","version":"2.1.2","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-preset-es2015":"~6.22.0","grunt":"~1.0.1","grunt-babel":"~6.0.0","grunt-cli":"~1.2.0","grunt-contrib-nodeunit":"~1.0.0","grunt-contrib-watch":"~1.0.0","grunt-eslint":"~19.0.0"},"dependencies":{},"gitHead":"bc1edc83861d46510aff57ade4ddeb40541ae054","_id":"tiny-worker@2.1.2","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"dist":{"shasum":"6feb363b87885582fdc6d91b37fe00dd612b84f2","size":4584,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-2.1.2.tgz"},"maintainers":[{"name":"npm:avoidwork","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tiny-worker_2.1.2_1519905713829_0.7976634218306626"},"_hasShrinkwrap":false,"publish_time":1519905713882,"_cnpm_publish_time":1519905713882},"2.1.1":{"name":"tiny-worker","version":"2.1.1","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-preset-es2015":"~6.22.0","grunt":"~1.0.1","grunt-babel":"~6.0.0","grunt-cli":"~1.2.0","grunt-contrib-nodeunit":"~1.0.0","grunt-contrib-watch":"~1.0.0","grunt-eslint":"~19.0.0"},"dependencies":{},"gitHead":"5818285980cd3228bc8e5d6dd0f8dc5b91787f99","_id":"tiny-worker@2.1.1","_shasum":"0546f1437e43b9de253efaad235047677d73565b","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"dist":{"shasum":"0546f1437e43b9de253efaad235047677d73565b","size":4758,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-2.1.1.tgz"},"maintainers":[{"name":"npm:avoidwork","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tiny-worker-2.1.1.tgz_1493899621175_0.6438477775081992"},"directories":{},"publish_time":1493899621456,"_hasShrinkwrap":false,"_cnpm_publish_time":1493899621456},"2.1.0":{"name":"tiny-worker","version":"2.1.0","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-preset-es2015":"~6.22.0","grunt":"~1.0.1","grunt-babel":"~6.0.0","grunt-cli":"~1.2.0","grunt-contrib-nodeunit":"~1.0.0","grunt-contrib-watch":"~1.0.0","grunt-eslint":"~19.0.0"},"dependencies":{},"gitHead":"413eb73e6191ccd2bc7af64c98ccd5833044f97d","_id":"tiny-worker@2.1.0","_shasum":"18a5448fded06c9e5621b35f8cf85fdf424ce8c0","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"dist":{"shasum":"18a5448fded06c9e5621b35f8cf85fdf424ce8c0","size":4292,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-2.1.0.tgz"},"maintainers":[{"name":"npm:avoidwork","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/tiny-worker-2.1.0.tgz_1492687791600_0.09696603938937187"},"directories":{},"publish_time":1492687793579,"_hasShrinkwrap":false,"_cnpm_publish_time":1492687793579},"2.0.3":{"name":"tiny-worker","version":"2.0.3","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-preset-es2015":"~6.22.0","grunt":"~1.0.1","grunt-babel":"~6.0.0","grunt-cli":"~1.2.0","grunt-contrib-nodeunit":"~1.0.0","grunt-contrib-watch":"~1.0.0","grunt-eslint":"~19.0.0"},"dependencies":{},"gitHead":"ef0b0f8fcf0619b5b9df62ac1a52034f537df2b5","_id":"tiny-worker@2.0.3","_shasum":"b8ea0ec003b413643311290265461a76735ed0ab","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"4.4.2","_nodeVersion":"7.7.2","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"dist":{"shasum":"b8ea0ec003b413643311290265461a76735ed0ab","size":3561,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-2.0.3.tgz"},"maintainers":[{"name":"npm:avoidwork","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/tiny-worker-2.0.3.tgz_1489368802785_0.8644417873583734"},"directories":{},"publish_time":1489368804686,"_cnpm_publish_time":1489368804686,"_hasShrinkwrap":false},"2.0.2":{"name":"tiny-worker","version":"2.0.2","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-preset-es2015":"~6.22.0","grunt":"~1.0.1","grunt-babel":"~6.0.0","grunt-cli":"~1.2.0","grunt-contrib-nodeunit":"~1.0.0","grunt-contrib-watch":"~1.0.0","grunt-eslint":"~19.0.0"},"dependencies":{},"gitHead":"aa0ba91c7d82748d9dfdbbce1c8c9d83676e3de0","_id":"tiny-worker@2.0.2","_shasum":"357ff6cdbcdf2fcb13d1907a986d6c2c0c83750f","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"4.3.0","_nodeVersion":"7.5.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"dist":{"shasum":"357ff6cdbcdf2fcb13d1907a986d6c2c0c83750f","size":3562,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-2.0.2.tgz"},"maintainers":[{"name":"npm:avoidwork","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/tiny-worker-2.0.2.tgz_1488728519498_0.32157593313604593"},"directories":{},"publish_time":1488728521405,"_cnpm_publish_time":1488728521405,"_hasShrinkwrap":false},"2.0.1":{"name":"tiny-worker","version":"2.0.1","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-nodeunit":"^0.4.1","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{},"gitHead":"f5088f5c8dc97cf89ce1ad6dc1c5f59b68c46811","_id":"tiny-worker@2.0.1","_shasum":"e418f69d4c20a98c9048a211d8ae0e3bdf54cb2d","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"dist":{"shasum":"e418f69d4c20a98c9048a211d8ae0e3bdf54cb2d","size":3527,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-2.0.1.tgz"},"maintainers":[{"name":"npm:avoidwork","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tiny-worker-2.0.1.tgz_1483580297215_0.0928228001575917"},"directories":{},"publish_time":1483580299230,"_cnpm_publish_time":1483580299230,"_hasShrinkwrap":false},"2.0.0":{"name":"tiny-worker","version":"2.0.0","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-nodeunit":"^0.4.1","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{},"gitHead":"a63db63a3a8437315fa70e56bbb99ccca18e378f","_id":"tiny-worker@2.0.0","_shasum":"51d473348472b2021019a701e68e86aae340217b","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"dist":{"shasum":"51d473348472b2021019a701e68e86aae340217b","size":3534,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-2.0.0.tgz"},"maintainers":[{"name":"npm:avoidwork","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/tiny-worker-2.0.0.tgz_1483579775033_0.3013125751167536"},"directories":{},"publish_time":1483579777119,"_cnpm_publish_time":1483579777119,"_hasShrinkwrap":false},"1.1.7":{"name":"tiny-worker","version":"1.1.7","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-nodeunit":"^0.4.1","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{},"gitHead":"ffe8681c27c661caadec8d0f532493d154414758","_id":"tiny-worker@1.1.7","_shasum":"45d8ada1c47d2c2a276b9bb67501ebac78f8fe74","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"npm:avoidwork","email":""}],"dist":{"shasum":"45d8ada1c47d2c2a276b9bb67501ebac78f8fe74","size":3419,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-1.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-1.1.7.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tiny-worker-1.1.7.tgz_1475497235699_0.5870814837981015"},"directories":{},"publish_time":1475497237359,"_cnpm_publish_time":1475497237359,"_hasShrinkwrap":false},"1.1.6":{"name":"tiny-worker","version":"1.1.6","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-nodeunit":"^0.4.1","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{},"gitHead":"cd1de2faa98a2a4d48318e9e26b2795365981b41","_id":"tiny-worker@1.1.6","_shasum":"4a1b3932ce8883f1aabe22259c4c528c03291fb3","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"npm:avoidwork","email":""}],"dist":{"shasum":"4a1b3932ce8883f1aabe22259c4c528c03291fb3","size":3311,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-1.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-1.1.6.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tiny-worker-1.1.6.tgz_1475495964005_0.6637931959703565"},"directories":{},"publish_time":1475495965783,"_cnpm_publish_time":1475495965783,"_hasShrinkwrap":false},"1.1.5":{"name":"tiny-worker","version":"1.1.5","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-nodeunit":"^0.4.1","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{},"gitHead":"0fef420cb8d52cd8bcc100e4257331637ba4c7e2","_id":"tiny-worker@1.1.5","_shasum":"7f06556f873238fb2f8212aad89cd415a47d97c5","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"npm:avoidwork","email":""}],"dist":{"shasum":"7f06556f873238fb2f8212aad89cd415a47d97c5","size":3293,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-1.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-1.1.5.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/tiny-worker-1.1.5.tgz_1470395081923_0.06295856414362788"},"directories":{},"publish_time":1470395083510,"_cnpm_publish_time":1470395083510,"_hasShrinkwrap":false},"1.1.4":{"name":"tiny-worker","version":"1.1.4","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-nodeunit":"^0.4.1","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{},"gitHead":"6ae5234a9105653b3f947ecac8b3c407a6cd6bfb","_id":"tiny-worker@1.1.4","_shasum":"e068356286878dc1cbf2c8ffd43ecf596b9e07bb","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"dist":{"shasum":"e068356286878dc1cbf2c8ffd43ecf596b9e07bb","size":3310,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-1.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-1.1.4.tgz"},"maintainers":[{"name":"npm:avoidwork","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tiny-worker-1.1.4.tgz_1466033962797_0.7907035890966654"},"directories":{},"publish_time":1466033965073,"_cnpm_publish_time":1466033965073,"_hasShrinkwrap":false},"1.1.3":{"name":"tiny-worker","version":"1.1.3","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-nodeunit":"^0.4.1","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{},"gitHead":"14a9a9119c1bf424e5cd27757e39babf37ec92d7","_id":"tiny-worker@1.1.3","_shasum":"5f20c450d273f7e0510c38a50622e99c53ea8c01","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"dist":{"shasum":"5f20c450d273f7e0510c38a50622e99c53ea8c01","size":3313,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-1.1.3.tgz"},"maintainers":[{"name":"npm:avoidwork","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tiny-worker-1.1.3.tgz_1466033688725_0.048341808607801795"},"directories":{},"publish_time":1466033690957,"_cnpm_publish_time":1466033690957,"_hasShrinkwrap":false},"1.1.2":{"name":"tiny-worker","version":"1.1.2","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-nodeunit":"^0.4.1","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{},"gitHead":"c77e9d5a11c5f47bc0de5e83c97ce1909ea41e9b","_id":"tiny-worker@1.1.2","_shasum":"1522158ac4de860286716d4395127d16b42700b6","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"dist":{"shasum":"1522158ac4de860286716d4395127d16b42700b6","size":3332,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-1.1.2.tgz"},"maintainers":[{"name":"npm:avoidwork","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tiny-worker-1.1.2.tgz_1466033321213_0.14759333268739283"},"directories":{},"publish_time":1466033323661,"_cnpm_publish_time":1466033323661,"_hasShrinkwrap":false},"1.1.1":{"name":"tiny-worker","version":"1.1.1","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-nodeunit":"^0.4.1","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{},"gitHead":"a119c860a30fb12edae0a8acd287967169e91f6e","_id":"tiny-worker@1.1.1","_shasum":"aa66e5f7b8a713f81b127217e0c1e3a47ca47597","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"npm:avoidwork","email":""}],"dist":{"shasum":"aa66e5f7b8a713f81b127217e0c1e3a47ca47597","size":3324,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-1.1.1.tgz"},"directories":{},"publish_time":1444854515238,"_cnpm_publish_time":1444854515238,"_hasShrinkwrap":false},"1.1.0":{"name":"tiny-worker","version":"1.1.0","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-nodeunit":"^0.4.1","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{},"gitHead":"c7ed1445978b436b8cd0d2f8a1c42f318aa48a13","_id":"tiny-worker@1.1.0","_shasum":"60afb1eece1bdb894ee032ffbc28f59e53fd5e22","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"npm:avoidwork","email":""}],"dist":{"shasum":"60afb1eece1bdb894ee032ffbc28f59e53fd5e22","size":3331,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-1.1.0.tgz"},"directories":{},"publish_time":1444837300633,"_cnpm_publish_time":1444837300633,"_hasShrinkwrap":false},"1.0.4":{"name":"tiny-worker","version":"1.0.4","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-nodeunit":"^0.4.1","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{},"gitHead":"60d6859ad7036c69edbf4ca0b285eee8be293230","_id":"tiny-worker@1.0.4","_shasum":"32e6775bf5893bc42c6aa952534efcf7cc99779e","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"npm:avoidwork","email":""}],"dist":{"shasum":"32e6775bf5893bc42c6aa952534efcf7cc99779e","size":3327,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-1.0.4.tgz"},"directories":{},"publish_time":1443609958386,"_cnpm_publish_time":1443609958386,"_hasShrinkwrap":false},"1.0.3":{"name":"tiny-worker","version":"1.0.3","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{},"gitHead":"6eba157e03d271108d84b4801984f23512aa95c4","_id":"tiny-worker@1.0.3","_shasum":"0686c2287eaeee0b38a1b73273417ee6c006a770","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"npm:avoidwork","email":""}],"dist":{"shasum":"0686c2287eaeee0b38a1b73273417ee6c006a770","size":3300,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-1.0.3.tgz"},"directories":{},"publish_time":1443574043047,"_cnpm_publish_time":1443574043047,"_hasShrinkwrap":false},"1.0.2":{"name":"tiny-worker","version":"1.0.2","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{},"gitHead":"7da12a1f6dad3fb2967c532839c48c8100905c13","_id":"tiny-worker@1.0.2","_shasum":"4ba41c7963ab8658163cc2cdac235eb2a6d8e3c0","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"npm:avoidwork","email":""}],"dist":{"shasum":"4ba41c7963ab8658163cc2cdac235eb2a6d8e3c0","size":3297,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-1.0.2.tgz"},"directories":{},"publish_time":1443573894912,"_cnpm_publish_time":1443573894912,"_hasShrinkwrap":false},"1.0.1":{"name":"tiny-worker","version":"1.0.1","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{},"gitHead":"e26b8757c4887e630f678355077357196200ebae","_id":"tiny-worker@1.0.1","_shasum":"e5c475c4f1087dab4615d92bdc218179cf04e2c9","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"npm:avoidwork","email":""}],"dist":{"shasum":"e5c475c4f1087dab4615d92bdc218179cf04e2c9","size":3335,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-1.0.1.tgz"},"directories":{},"publish_time":1443573810294,"_cnpm_publish_time":1443573810294,"_hasShrinkwrap":false},"1.0.0":{"name":"tiny-worker","version":"1.0.0","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{"tiny-defer":"^1.0.2"},"gitHead":"835c258081c649d0d6ada5d06133fa72af45d945","_id":"tiny-worker@1.0.0","_shasum":"7daeee4e894ac6c25aafd8fd2443ef45f354a844","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"npm:avoidwork","email":""}],"dist":{"shasum":"7daeee4e894ac6c25aafd8fd2443ef45f354a844","size":3344,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-1.0.0.tgz"},"directories":{},"publish_time":1443573687642,"_cnpm_publish_time":1443573687642,"_hasShrinkwrap":false},"0.1.0":{"name":"tiny-worker","version":"0.1.0","description":"Tiny WebWorker for Server","main":"lib/index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/avoidwork/tiny-worker.git"},"keywords":["web","worker","ps","webworker"],"author":{"name":"Jason Mulligan","email":"jason.mulligan@avoidwork.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"homepage":"https://github.com/avoidwork/tiny-worker","devDependencies":{"babel-eslint":"^4.1.0","grunt":"^0.4.5","grunt-babel":"^5.0.0","grunt-cli":"^0.1.13","grunt-contrib-watch":"^0.6.1","grunt-eslint":"^17.1.0"},"dependencies":{"tiny-defer":"^1.0.2"},"gitHead":"4b4309889b13032092ddd81f4f9222b1d75cec1b","_id":"tiny-worker@0.1.0","_shasum":"fcf80c9e57449dd6721041740d4f79f1a76ae85f","_from":"tiny-worker","_resolved":"file:tiny-worker","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"avoidwork","email":"jason.mulligan@avoidwork.com"},"maintainers":[{"name":"npm:avoidwork","email":""}],"dist":{"shasum":"fcf80c9e57449dd6721041740d4f79f1a76ae85f","size":1910,"noattachment":false,"key":"/tiny-worker/-/tiny-worker-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-worker/download/tiny-worker-0.1.0.tgz"},"directories":{},"publish_time":1443565695636,"_cnpm_publish_time":1443565695636,"_hasShrinkwrap":false}},"readme":"# tiny-worker\r\nTiny WebWorker for Server\r\n\r\n`require()` is available for flexible inline Worker scripts. Optional parameters `args` Array & `options` Object; see `child_process.fork()` documentation.\r\n\r\n[![build status](https://secure.travis-ci.org/avoidwork/tiny-worker.svg)](http://travis-ci.org/avoidwork/tiny-worker)\r\n\r\n## Example\r\n#### Creating a Worker from a file\r\nThe worker script:\r\n```javascript\r\nonmessage = function (ev) {\r\n\tpostMessage(ev.data);\r\n};\r\n```\r\n\r\nThe core script:\r\n```javascript\r\nvar Worker = require(\"tiny-worker\");\r\nvar worker = new Worker(\"repeat.js\");\r\n\r\nworker.onmessage = function (ev) {\r\n\tconsole.log(ev.data);\r\n\tworker.terminate();\r\n};\r\n\r\nworker.postMessage(\"Hello World!\");\r\n```\r\n\r\n#### Enable ES6 import/export within Worker file\r\nThe worker helper script (helper.js):\r\n```javascript\r\nexport const dataFormatter = (data) => {\r\n\treturn `${data} World!`;\r\n};\r\n```\r\n\r\nThe worker script (repeat.js):\r\n```javascript\r\nimport { dataFormatter } from \"./helper\";\r\n\r\nonmessage = function (ev) {\r\n\tconst data = dataFormatter(ev.data);\r\n\tpostMessage(data);\r\n};\r\n```\r\n\r\nThe core script:\r\n```javascript\r\nvar Worker = require(\"tiny-worker\");\r\nvar worker = new Worker(\"repeat.js\", [], {esm: true});\r\n\r\nworker.onmessage = function (ev) {\r\n\tconsole.log(ev.data);\r\n\tworker.terminate();\r\n};\r\n\r\nworker.postMessage(\"Hello\");\r\n```\r\n\r\n#### Creating a Worker from a Function\r\n```javascript\r\nvar Worker = require(\"tiny-worker\");\r\nvar worker = new Worker(function () {\r\n\tself.onmessage = function (ev) {\r\n\t\tpostMessage(ev.data);\r\n\t};\r\n});\r\n\r\nworker.onmessage = function (ev) {\r\n\tconsole.log(ev.data);\r\n\tworker.terminate();\r\n};\r\n\r\nworker.postMessage(\"Hello World!\");\r\n```\r\n\r\n# Debugging\r\nTo be able to debug a child process, it must have a differnt debug port than the parent. \r\nTiny worker does this by adding a random port within a range to the parents debug port.\r\nThe default Range is `[1, 300]`, it can be changed with the `setRange(min, max)` method.\r\nTo disable any automatic port redirection set `options.noDebugRedirection = true`.\r\n\r\n### automatic redirection\r\n```javascript\r\n//parent is started with '--debug=1234'\r\nvar Worker = require(\"tiny-worker\");\r\nWorker.setRange(2, 20);\r\n\r\nvar worker = new Worker(function () {\r\n\tpostMessage(process.debugPort); \r\n});\r\n\r\nworker.onmessage = function (ev) {\r\n\tconsole.log(ev.data); //prints any number between 1236 and 1254\r\n\tworker.terminate();\r\n}\r\n```\r\n\r\n### manual redirection\r\n```javascript\r\n//parent is started with '--debug=1234'\r\nvar Worker = require(\"tiny-worker\");\r\n\r\nvar worker = new Worker(function () {\r\n\tpostMessage(process.debugPort); \r\n}, [], {noDebugRedirection: true, execArgv: [\"--debug=1235\"]});\r\n\r\nworker.onmessage = function (ev) {\r\n\tconsole.log(ev.data); //prints 1235\r\n\tworker.terminate();\r\n}\r\n```\r\n\r\n## Properties\r\n#### onmessage\r\nMessage handler, accepts an `Event`\r\n\r\n#### onerror\r\nError handler, accepts an `Event`\r\n\r\n## API\r\n#### addEventListener(event, fn)\r\nAdds an event listener\r\n\r\n#### postMessage()\r\nBroadcasts a message to the `Worker`\r\n\r\n#### terminate()\r\nTerminates the `Worker`\r\n\r\n#### static setRange(min, max)\r\nSets range for debug ports, only affects current process.\r\nReturns true if successful.\r\n\r\n## FAQ\r\n1. I have an orphaned child process that lives on past the parent process' lifespan\r\n  * Most likely a `SIGTERM` or `SIGINT` is not reaching the child process\r\n2. How do I insure all process are terminated?\r\n  * In your core script register a listener for `SIGTERM` or `SIGINT` via `process.on()` which terminates (all) worker process(es) and then gracefully shutdowns via `process.exit(0);`\r\n3. Why `SIGTERM` or `SIGINT`?\r\n  * Unix/BSD will work with `SIGTERM`, but if you also need to support Windows use `SIGINT`\r\n\r\n## License\r\nCopyright (c) 2019 Jason Mulligan\r\nLicensed under the BSD-3 license\r\n","_attachments":{},"homepage":"https://github.com/avoidwork/tiny-worker","bugs":{"url":"https://github.com/avoidwork/tiny-worker/issues"},"license":"BSD-3-Clause"}