{"_id":"workerify","_rev":"23-35a929029bc4503fffad95d0c57a1e42","name":"workerify","description":"Transform web workers into browserified inline Blobs with browserify.","dist-tags":{"latest":"1.1.0"},"versions":{"0.1.0":{"name":"workerify","description":"Transform web workers into browserified inline Blobs with browserify.","version":"0.1.0","homepage":"https://github.com/shama/workerify","author":{"name":"Kyle Robinson Young","email":"kyle@dontkry.com","url":"http://dontkry.com"},"main":"index.js","keywords":["worker","browserify","transform"],"repository":{"type":"git","url":"git://github.com/shama/workerify.git"},"bugs":{"url":"https://github.com/shama/workerify/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shama/workerify/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"node test/workerify.js"},"dependencies":{"through":"~2.3.4","esprima":"~1.0.3","estraverse":"~1.1.2","escodegen":"0.0.23"},"devDependencies":{},"_id":"workerify@0.1.0","dist":{"shasum":"55afd2049db5d9b173c2348259481424d01ab951","tarball":"https://registry.npmjs.org/workerify/-/workerify-0.1.0.tgz","integrity":"sha512-ST1HcTz3kqfnvqYOaNRh63rutFsNAGwoohBoK145O/1rvCL0S2fwsP2D+mZB48xMEt/JhQpZVyIop8zSK8AO2A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFlVf9OVGxfqEpxbZ+bezWg1RgKaXTWpnkxc9DfdJzmHAiEA/akcTWQWVUU2Hzzjw1YbDbp2DJNNPKzy8e5yduL4GXQ="}]},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"shama","email":"kyle@dontkry.com"},"maintainers":[{"name":"shama","email":"kyle@dontkry.com"}]},"0.2.0":{"name":"workerify","description":"Transform web workers into browserified inline Blobs with browserify.","version":"0.2.0","homepage":"https://github.com/shama/workerify","author":{"name":"Kyle Robinson Young","email":"kyle@dontkry.com","url":"http://dontkry.com"},"main":"index.js","keywords":["worker","browserify","transform"],"repository":{"type":"git","url":"git://github.com/shama/workerify.git"},"bugs":{"url":"https://github.com/shama/workerify/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shama/workerify/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"node test/workerify.js"},"dependencies":{"through":"~2.3.4","browserify":"~2.18.1","string-escape":"~0.1.6"},"devDependencies":{},"_id":"workerify@0.2.0","dist":{"shasum":"cb0132021fc605b70db18d9de5e19db6c7dac484","tarball":"https://registry.npmjs.org/workerify/-/workerify-0.2.0.tgz","integrity":"sha512-VPI3sSTxuW1vwVPxx51UuHmr+1LF8YVLezcV0L0WHsy925V14rEjumaoyEyL2RAOCns/AtJT2sHPWiCtDewGBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeAs9AoituBdGLDvcvbPJtxPcy3af28z0bwqgDRvcB0gIhAP4nDqZAUC0K+mAhGST+iV58e+3NpiE1Nw4XBBTXaJFR"}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"shama","email":"kyle@dontkry.com"},"maintainers":[{"name":"shama","email":"kyle@dontkry.com"}]},"0.2.1":{"name":"workerify","description":"Transform web workers into browserified inline Blobs with browserify.","version":"0.2.1","homepage":"https://github.com/shama/workerify","author":{"name":"Kyle Robinson Young","email":"kyle@dontkry.com","url":"http://dontkry.com"},"main":"index.js","keywords":["worker","browserify","transform"],"repository":{"type":"git","url":"git://github.com/shama/workerify.git"},"bugs":{"url":"https://github.com/shama/workerify/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shama/workerify/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"node test/workerify.js","start":"cd example && ./node_modules/.bin/beefy index.js 8080 -- -t workerify"},"dependencies":{"through":"~2.3.4","browserify":"~2.18.1","string-escape":"~0.1.6","falafel":"~0.2.1"},"devDependencies":{"beefy":"~0.4.0","workerstream":"~1.0.1"},"_id":"workerify@0.2.1","dist":{"shasum":"2a62329578eac62470cc7e1334c565886b08d9fc","tarball":"https://registry.npmjs.org/workerify/-/workerify-0.2.1.tgz","integrity":"sha512-8h1qxpVQfX3ZlSNQlJRtNAf3rumP4vpLeUY/JY5zgMK4/YxNX2GhudjmF6HHghtsUwLmV+6GjcUqyusBiEuI9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDG1ProcJdhXgssOn+8g2cMrlopa4DoN9kJd1dPwc6xvgIhAMziLqtQI1gnyvOTLLjBesX1erHvMySThlDNqXKY78WS"}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"shama","email":"kyle@dontkry.com"},"maintainers":[{"name":"shama","email":"kyle@dontkry.com"}]},"0.2.2":{"name":"workerify","description":"Transform web workers into browserified inline Blobs with browserify.","version":"0.2.2","homepage":"https://github.com/shama/workerify","author":{"name":"Kyle Robinson Young","email":"kyle@dontkry.com","url":"http://dontkry.com"},"main":"index.js","keywords":["worker","browserify","transform"],"repository":{"type":"git","url":"git://github.com/shama/workerify.git"},"bugs":{"url":"https://github.com/shama/workerify/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shama/workerify/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"node test/workerify.js","start":"cd example && ./node_modules/.bin/beefy index.js 8080 -- -t workerify"},"dependencies":{"browserify":"~2.18.1","falafel":"~0.2.1","jsesc":"~0.3.0","through":"~2.3.4"},"devDependencies":{"beefy":"~0.4.0","workerstream":"~1.0.1"},"_id":"workerify@0.2.2","dist":{"shasum":"20129909813cf03734e017215ce2dad8faf0f02f","tarball":"https://registry.npmjs.org/workerify/-/workerify-0.2.2.tgz","integrity":"sha512-A0A9oMuYiQh+Rb3zr9IhVaXB0eVJy2/SnvLb9uTPNz24RjeLFBIOfLShzjQ2zEGgP7ptlyFcAs1WAaLFjevZuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIClsZ4MVhZy67sO3MtAqxtbWP/lcWZuVsgQ9tAw7gTsDAiEAiELkKB3Ahd/ZCWX8RwEaeQr3PIAxWZI+wHB8+CnxHOI="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"shama","email":"kyle@dontkry.com"},"maintainers":[{"name":"shama","email":"kyle@dontkry.com"}]},"0.2.3":{"name":"workerify","description":"Transform web workers into browserified inline Blobs with browserify.","version":"0.2.3","homepage":"https://github.com/shama/workerify","author":{"name":"Kyle Robinson Young","email":"kyle@dontkry.com","url":"http://dontkry.com"},"main":"index.js","keywords":["worker","browserify","transform"],"repository":{"type":"git","url":"git://github.com/shama/workerify.git"},"bugs":{"url":"https://github.com/shama/workerify/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shama/workerify/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"node test/workerify.js","start":"cd example && ./node_modules/.bin/beefy index.js 8080 -- -t workerify"},"dependencies":{"browserify":"~2.18.1","falafel":"~0.2.1","jsesc":"~0.3.0","through":"~2.3.4"},"devDependencies":{"beefy":"~0.4.0","workerstream":"~1.0.1"},"_id":"workerify@0.2.3","dist":{"shasum":"8946dbf6a2b94ac2d1f63805a17ace96c0dc203b","tarball":"https://registry.npmjs.org/workerify/-/workerify-0.2.3.tgz","integrity":"sha512-0yrvvjSvGEHJU+BImyCrcTAktuLHGMRsG4B9shFz4K8R8abbz2kD8zLpISJOcL+RqIsmv9fh0O2dKYPn0tdZgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCt8SouttWu0edUrnkgcq5bNLuAzyTsUPOZISwL61fjAQIhAOCkHstqvV+ZHykFEQGaxBznLoOEhxlsQNgzrX5vzjTv"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"shama","email":"kyle@dontkry.com"},"maintainers":[{"name":"shama","email":"kyle@dontkry.com"}]},"0.3.0":{"name":"workerify","description":"Transform web workers into browserified inline Blobs with browserify.","version":"0.3.0","homepage":"https://github.com/shama/workerify","author":{"name":"Kyle Robinson Young","email":"kyle@dontkry.com","url":"http://dontkry.com"},"main":"index.js","keywords":["worker","browserify","transform"],"repository":{"type":"git","url":"git://github.com/shama/workerify.git"},"bugs":{"url":"https://github.com/shama/workerify/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shama/workerify/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"browserify test/test.js -t ./ -o test/out.js","start":"beefy example/index.js -- -t ./"},"files":["LICENSE-MIT","index.js"],"dependencies":{"browserify":"~3.41.0","falafel":"~0.2.1","jsesc":"~0.3.0","through":"~2.3.4"},"devDependencies":{"beefy":"~1.1.0","workerstream":"~1.0.1","tape":"~2.12.3"},"testling":{"files":"test/out.js","browsers":["ielatest","chrome/latest","firefoxlatest","safari/latest","opera/latest","iphone/latest","ipad/latest","android-browser/latest"]},"_id":"workerify@0.3.0","dist":{"shasum":"5d8e6ce9b6db7bf139d2dd8beacf5a88827449f6","tarball":"https://registry.npmjs.org/workerify/-/workerify-0.3.0.tgz","integrity":"sha512-6BcYVTv5lohGz5EMSscoXWA1qjDyy+GyAd7JzjnDVnq4D7QysZDAoabW6H78Iel71LcsDvUlSAiFEssO9WN3+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHscB1pAIhOkNNYEFhSSEHpi+JWpGhjMJ5J3TCxe4WIBAiApyOseUKPuIqcNlXIpD/Eod1llUenFoBGDeYFAYEDgnQ=="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"shama","email":"kyle@dontkry.com"},"maintainers":[{"name":"shama","email":"kyle@dontkry.com"}]},"1.0.0":{"name":"workerify","description":"Transform web workers into browserified inline Blobs with browserify.","version":"1.0.0","homepage":"https://github.com/shama/workerify","author":{"name":"Kyle Robinson Young","email":"kyle@dontkry.com","url":"http://dontkry.com"},"main":"index.js","keywords":["worker","browserify","transform"],"repository":{"type":"git","url":"git://github.com/shama/workerify.git"},"bugs":{"url":"https://github.com/shama/workerify/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shama/workerify/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"browserify test/test.js -t ./ -o test/out.js","start":"budo example/index.js -- -t ./"},"files":["LICENSE-MIT","index.js"],"dependencies":{"browserify":"^14.0.0","falafel":"^0.2.1","jsesc":"^2.5.0","through":"^2.3.4"},"devDependencies":{"budo":"^10.0.3","workerstream":"^1.2.1","tape":"^4.6.3"},"testling":{"files":"test/out.js","browsers":["ielatest","chrome/latest","firefoxlatest","safari/latest","opera/latest","iphone/latest","ipad/latest","android-browser/latest"]},"gitHead":"b2a253a23665b0e8db4434b1039cbdfbd2ee2ac9","_id":"workerify@1.0.0","_shasum":"d8c17e29e080c080d96898e7cd5d8facb3fe8a3a","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.1","_npmUser":{"name":"shama","email":"kyle@dontkry.com"},"dist":{"shasum":"d8c17e29e080c080d96898e7cd5d8facb3fe8a3a","tarball":"https://registry.npmjs.org/workerify/-/workerify-1.0.0.tgz","integrity":"sha512-utxEo3mU8E8PLa5803WgQRddLYZAyuJDIYicHyL5Fi/Js8zK/nAPqD+Ww8aJ7rfGB1Oy/SfbnZgpLf1C5RN37A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgNzG5mgsyhaT3+jFBffHwHZgvhk8caFgS9SRRoyqcyAIhAPKIjTDLL5FC2He83FiiVea1/dFouizI30LdQBqtyrgN"}]},"maintainers":[{"name":"shama","email":"kyle@dontkry.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/workerify-1.0.0.tgz_1493132693294_0.2895880462601781"}},"1.1.0":{"name":"workerify","description":"Transform web workers into browserified inline Blobs with browserify.","version":"1.1.0","homepage":"https://github.com/shama/workerify","author":{"name":"Kyle Robinson Young","email":"kyle@dontkry.com","url":"http://dontkry.com"},"main":"index.js","keywords":["worker","browserify","transform"],"repository":{"type":"git","url":"git://github.com/shama/workerify.git"},"bugs":{"url":"https://github.com/shama/workerify/issues"},"license":"MIT","engines":{"node":">= 0.8.0"},"scripts":{"test":"browserify test/test.js -t ./ -o test/out.js","start":"budo example/index.js -- -t ./"},"files":["LICENSE-MIT","index.js"],"dependencies":{"browserify":"^14.5.0","falafel":"^2.1.0","jsesc":"^2.5.0","through":"^2.3.4"},"devDependencies":{"budo":"^10.0.3","workerstream":"^1.2.1","tape":"^4.8.0"},"testling":{"files":"test/out.js","browsers":["ielatest","chrome/latest","firefoxlatest","safari/latest","opera/latest","iphone/latest","ipad/latest","android-browser/latest"]},"gitHead":"0727b53b262ecce4859a018b7a1614d0f1bb497c","_id":"workerify@1.1.0","_npmVersion":"5.4.2","_nodeVersion":"8.5.0","_npmUser":{"name":"shama","email":"kyle@dontkry.com"},"dist":{"integrity":"sha512-tsDZfhsPBZTiytsZx4CpgMZL+uLu5VnBIUpRjgX1pey1G8YkQNe43ktjHYbmEzHkvGjN9oxzKmxINKDeNmUsGQ==","shasum":"6851e0619dc928d5d99a228084d7380b1612fcc7","tarball":"https://registry.npmjs.org/workerify/-/workerify-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDBsr2DEtIJNJl2F/Gwln+3r/OV/YCxVw0kPbNg00FsnAiEA39+9YIU3w8tPGVTdojYQ2IZ6jm9XHOprUHr+C54ATC4="}]},"maintainers":[{"name":"shama","email":"kyle@dontkry.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/workerify-1.1.0.tgz_1509657766707_0.8764017794746906"}}},"readme":"# workerify\n\nTransform web workers into browserified inline Blobs with browserify.\n\n[![browser support](https://ci.testling.com/shama/workerify.png)](https://ci.testling.com/shama/workerify)\n\n## example\n\nYour entry point `main.js`:\n```js\nvar mod = require('module')\nvar worker = new Worker('worker.js')\n```\n\nYour worker entry point `worker.js`:\n```js\nself.onmessage = function(e) {\n  var ab = new Uint8Array(10)\n  for (var n = 0; n < ab.length; n++) ab[n] = 1\n  self.postMessage(ab.buffer, [ab.buffer])\n}\n```\n\nBrowserify with this workerify transform:\n```shell\nbrowserify -t workerify main.js > bundle.js\n```\n\nand your `bundle.js` will look like:\n```js\nvar mod = require('module')\nvar worker = new Worker(window.URL.createObjectURL(new Blob(['BROWSERIFIED CONTENTS OF worker.js'])));\n```\n\n### further example\nTake a look at the [example module](https://github.com/shama/workerify/tree/master/example) for using with [workerstream](https://github.com/maxogden/workerstream).\n\n## Modular Workers\nThe main reason for this is modular workers.\n\nLet's say you create a module that would like to use web workers. Users would\nneed to configure the URL to the worker. When your module becomes a dependency\nof a dependency and so on, the setup becomes really cumbersome. Especially when\nyour worker needs to be browserified.\n\nWith this transform you simply `npm install workerify --save` and configure your\nmodule's `package.json` to apply the transform:\n\n``` json\n{\n  \"name\": \"mymodule\",\n  \"browserify\": {\n    \"transform\": \"workerify\"\n  }\n}\n```\n\nNow when end users `browserify` your module, anywhere in the dependency tree, it\nwill browserify and inline the worker. No URLs, no extra build steps and no\nadditional end user requirements.\n\n## Notes\nCurrently it will transform the following:\n\n```js\n// String literal\nnew Worker('./path/to/worker.js')\n\n// Variable Init Earlier\nvar myworker = './path/to/worker.js'\nnew Worker(myworker)\n\n// Or specify the workerify keyword to browserify a string anywhere\n// Useful if you want to inline your worker when working with other libs\nvar myworker = workerify './path/to/worker.js'\nvar workerstream = require('workerstream')(myworker)\n```\n\n### Using with coffeescript\n\n```shell\nbrowserify file.coffee -t coffeeify -t workerify\n```\n\n## install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install workerify\n```\n\n## release history\n* 1.1.0 - Support for Workers as modules (@moin-qidwai).\n* 1.0.0 - Upgrade browserify to 14.0.0 (@runn1ng) and other deps. Prefer window.URL over window.webkitURL.\n* 0.3.0 - Upgrade browserify to 3.41.0. Allow worker to be used with watchify (@tmpvar)\n* 0.2.3 - support compilation from coffeescript original source file\n* 0.2.2 - string-escape dep renamed to jsesc (@mathiasbynens)\n* 0.2.1 - Add missing falafel dep and bug fixes (@mikolalysenko)\n* 0.2.0 - use falafel and support more formats\n* 0.1.0 - initial release\n\n## license\nCopyright (c) 2017 Kyle Robinson Young<br/>\nLicensed under the MIT license.\n","maintainers":[{"name":"shama","email":"kyle@dontkry.com"}],"time":{"modified":"2022-06-29T03:21:16.532Z","created":"2013-06-15T17:36:34.145Z","0.1.0":"2013-06-15T17:36:35.745Z","0.2.0":"2013-06-26T19:53:29.163Z","0.2.1":"2013-07-13T00:22:45.562Z","0.2.2":"2013-07-28T02:36:44.754Z","0.2.3":"2013-11-06T00:35:40.100Z","0.3.0":"2014-04-14T05:08:21.785Z","1.0.0":"2017-04-25T15:04:53.519Z","1.1.0":"2017-11-02T21:22:46.829Z"},"author":{"name":"Kyle Robinson Young","email":"kyle@dontkry.com","url":"http://dontkry.com"},"repository":{"type":"git","url":"git://github.com/shama/workerify.git"},"homepage":"https://github.com/shama/workerify","keywords":["worker","browserify","transform"],"bugs":{"url":"https://github.com/shama/workerify/issues"},"readmeFilename":"README.md","users":{"tmpvar":true,"gozala":true,"gerst20051":true,"vash15":true,"jlertle":true},"license":"MIT"}