{"_id":"subworkers","_rev":"4-8da31873ca741c565723ac49ebd9eba7","name":"subworkers","description":"Polyfill to allow nested WebWorkers Edit","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"subworkers","version":"1.0.0","description":"Polyfill to allow nested WebWorkers Edit","main":"subworkers.js","directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/dmihal/Subworkers.git"},"author":{"name":"David Mihal"},"license":"MIT","bugs":{"url":"https://github.com/dmihal/Subworkers/issues"},"homepage":"https://github.com/dmihal/Subworkers#readme","gitHead":"246d72923632e788dffdc82df8b7703d1577a3d8","_id":"subworkers@1.0.0","scripts":{},"_shasum":"3bc481d996baa9e197a2eeb40c1fea9791651018","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"dmihal","email":"david@dmihal.com"},"dist":{"shasum":"3bc481d996baa9e197a2eeb40c1fea9791651018","tarball":"https://registry.npmjs.org/subworkers/-/subworkers-1.0.0.tgz","integrity":"sha512-pHQSWKCJjCtbf0OeJk7VjRSxKK7N+aopgKi54etqrr9cEKwYjyMF6BmH/GcKKSDdiWagDayKwFbAih5wGlTMcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfVKP+aAwK5obGJf+yqifido40jxiAnTWmfBnz5z1OQAIgXVLFoVIpvJoIA+hX6PKTjpIG0maCrAHCFt9gRqA5rGQ="}]},"maintainers":[{"name":"dmihal","email":"david@dmihal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/subworkers-1.0.0.tgz_1496258777631_0.009385303128510714"}},"1.0.1":{"name":"subworkers","version":"1.0.1","description":"Polyfill to allow nested WebWorkers Edit","main":"subworkers.js","directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/dmihal/Subworkers.git"},"author":{"name":"David Mihal"},"license":"MIT","bugs":{"url":"https://github.com/dmihal/Subworkers/issues"},"homepage":"https://github.com/dmihal/Subworkers#readme","gitHead":"ec3a859d57e3156b844949761b7708ce44583804","_id":"subworkers@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.1.3","_npmUser":{"name":"dmihal","email":"david@dmihal.com"},"dist":{"integrity":"sha512-5R3HH7AMvvuWozRqgOCe/zJic3Hn/mdVHpg7ILuo2BV8qosTiDDngLpsvNernPnUnH57fP3IWU8Eux354E2WcQ==","shasum":"38d35968c0cece0ae1c2b4492325ac27e10ef8b3","tarball":"https://registry.npmjs.org/subworkers/-/subworkers-1.0.1.tgz","fileCount":10,"unpackedSize":8352,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbceZmCRA9TVsSAnZWagAATjcP/iikf/JUeAVXlHxtIzs9\nTPSAgB8nDzAlvXkVlNdCSi/NStgPOoY8NJ6w+Wtm+k9a2pnolOooL+a+fFR+\nUh/PyrhijWDoPl0NzEvns8PmAMTNOEAu8phErWqqcCzHAOQxC+xk68hns5Ra\nu/NLwZAlMwOO+wCSfFBT5MkFwsJOXmqpZq8R9WhwEXK7Wk4xK7F+yU3ptVz2\nIIlLGKqVywcsyGjZ9MC2DCMq2AiRsogXccSbFbxdSYvqCaqJ/u8kXYYoJdFI\n+l96H8XUBnH7M0taii+12V2p9Fl3zKeWOwuLZJtxi9VVWP8zbrYfHZsWxo62\nTHlVvUWH4UCXQhoigo9euszpd+wBL0yYC6x+I7M8RJ7IAO/hPp7YbdhLq2B3\nK/ChGR6QfO1xxCqV8Sleo5DdAScduFI8aAicAbkiPMv4Otf5byB5ersW+u5r\nQxvqdc+8jkegOjpa1FyAf3L5DW3gn3LRJXGtls8LyF+CRk4zeUKx0qUoJYTy\nUPEWPtHtbIwW6Ydbv7AfGiNhaYoBWvbh1P/Y2Xk5APzaeyIyZEYAnqeyoPAv\niki5u9qdVJy1kZiBLVb9zuAmOKhvZljl63B80Xc5LF631GyOiyTNXEaIH78T\nRNQnHaxB++5XLQNnzLtomoLgMkyFcxDZoyg1SvUyfCJzvhtI7t4NZ536n8Kj\n4K8y\r\n=4xcS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICbbKIIHYfJZ21ekIpH4s/fM8o0nAl13VB2OkE6dcRlRAiA3wqpyh50EJX4Vv3MtCBuuOx1EEPKEwhsFc3D3SwtuXw=="}]},"maintainers":[{"name":"dmihal","email":"david@dmihal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/subworkers_1.0.1_1534191205505_0.37586487650326905"},"_hasShrinkwrap":false}},"readme":"# Subworkers\nWebWorkers are awesome! Unfortionately, Google Chrome doesn't support creating subworkers,\n[here's the Chromium issue for it](https://code.google.com/p/chromium/issues/detail?id=31666).\n\nThis polyfill provides this functionality to Chrome and any other browser that supports WebWorkers,\nbut not subworkers. This functionality is implemented by creating all subworkers in the context of\nthe main page and simulating the communication.\n\n## Usage\nUsing this is easy!\n\n1. Download [`subworkers.js`](https://raw.githubusercontent.com/dmihal/Subworkers/master/subworkers.js)\n2. In the document hosting the WebWorkers, include the `subworkers.js` script before any scripts that create WebWorkers.\n\n   ``` html\n   <script src=\"subworkers.js\"></script>\n   ```\n\n3. In the code for any WebWorker that will have a subworker, you also need to include `subworkers.js`.\n\n   ``` javascript\n   importScripts(\"subworkers.js\");\n   ```\n\nThat's it! WebWorkers now work the way you would expect!\n\n### With NPM\n\n1. Install subworkers.js by running `npm install -s subworkers`\n2. Import the library in all scripts\n\n``` javascript\nrequire('subworkers'); // CommonJS\n// or\nimport 'subworkers'; // ES2015+\n```\n\n## License\nThis project is released under the MIT License.\n","maintainers":[{"name":"dmihal","email":"david@dmihal.com"}],"time":{"modified":"2022-06-27T01:54:01.031Z","created":"2017-05-31T19:26:18.578Z","1.0.0":"2017-05-31T19:26:18.578Z","1.0.1":"2018-08-13T20:13:26.047Z"},"homepage":"https://github.com/dmihal/Subworkers#readme","repository":{"type":"git","url":"git+https://github.com/dmihal/Subworkers.git"},"author":{"name":"David Mihal"},"bugs":{"url":"https://github.com/dmihal/Subworkers/issues"},"license":"MIT","readmeFilename":"README.md"}