{"_id":"@baadc0de/audioworklet-polyfill","_rev":"1-f1c7fcbae05ab74c488eba369e35d2bb","name":"@baadc0de/audioworklet-polyfill","dist-tags":{"latest":"1.1.2"},"versions":{"1.1.2":{"name":"@baadc0de/audioworklet-polyfill","version":"1.1.2","description":"AudioWorklet polyfill using the legacy ScriptProcessor API.","source":"src/index.js","main":"dist/audioworklet-polyfill.js","license":"Apache-2.0","author":{"name":"The Chromium Authors"},"contributors":[{"name":"Jason Miller","email":"developit@google.com"}],"repository":{"type":"git","url":"git+https://github.com/GoogleChromeLabs/audioworklet-polyfill.git"},"scripts":{"build":"microbundle -f iife","start":"concurrently serve \"microbundle watch -f iife\"","test":"eslint src","deploy":"cp -rf demo build && cp -r dist build/ && sed -i '' 's/\\.\\.\\/dist/dist/' build/index.html && gh-pages -d build && rm -rf build"},"eslintConfig":{"extends":"standard","env":{"browser":true,"node":false},"rules":{"indent":[2,2],"semi":[2,"always"],"prefer-const":1},"globals":{"registerProcessor":1,"AudioWorkletProcessor":1}},"keywords":["audio","worklet","polyfill","audio worklet","scriptprocessornode","web audio"],"devDependencies":{"concurrently":"^3.5.1","eslint":"^4.19.1","eslint-config-standard":"^11.0.0","eslint-plugin-import":"^2.12.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.7.0","eslint-plugin-standard":"^3.0.1","gh-pages":"^1.1.0","microbundle":"^0.4.4","serve":"^6.5.7"},"gitHead":"65c91ebdac0ec9ade7a75aeec9e9c19cf05d9ae1","bugs":{"url":"https://github.com/GoogleChromeLabs/audioworklet-polyfill/issues"},"homepage":"https://github.com/GoogleChromeLabs/audioworklet-polyfill#readme","_id":"@baadc0de/audioworklet-polyfill@1.1.2","_npmVersion":"6.5.0","_nodeVersion":"11.6.0","_npmUser":{"name":"baadc0de","email":"bojan@distopiksound.com"},"dist":{"integrity":"sha512-X5JZ7KtqmMIuBmoSqngwZi561q1Hqqh8IQ5gK6Q38jccg3hB9jpQBEQAr1ZmUHl9xL9/URBBS2WKY8mw65Qlyw==","shasum":"8a3a6084218242d4139adbf5dca357beed7b1405","tarball":"https://registry.npmjs.org/@baadc0de/audioworklet-polyfill/-/audioworklet-polyfill-1.1.2.tgz","fileCount":7,"unpackedSize":32247,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcNOpOCRA9TVsSAnZWagAAL4AP/ApcxiV3rPwvV0XwN+JY\nrNMj8tU3ECX3DjwLNsgxzOFBC+TuP+NiHYNZr3IfYWxfHqr79vTkNrE/0qA/\n/YR4GhYGBRs8ZoSJpH4dB+9SF6oRJikX+YEmlyhws6bzyrGFW0s9Mz/JOr2G\nUWicnxeu1wpN8+8kkzAm35E5BnXci9XrskWMdaD5hK48bTXdZ25cn1Y1LcUg\nmsipmMTibx1cMawlxDuaT2/homAQSe+Rwt77D3cUkL3Sfp/QRCW2kq7+jRTM\n+4tF0+SIrkTKO8Dn+i12In9m3ezybyFuJtawmyOxUNQn0Qwoot/XxU8TfhPh\n2PxRCPdLzMLBNUT8qPRj7OtxS6BH6/V9WLoQaiF2YNgR051dKaiWF4fPz21B\nLr4TgeCuu89WbvV06ln8INQYHyCxxFkP+vgIcg93lVxS0grKc1Jx/CV6fPQt\ny3ZcHiarGSFXgUIWrpg7KE3ENdqvSrbZmVd4bMH1+536Q0qrPSdepK9H4lDd\nH2sATPuti1re6Vn1iKy93DfNfdFCpvHNbIfayQF1hjmspFtKYwk4tVdVbRkd\nUzDsBbr8FH87EoJiJjFDp1MOBExM57Q1A2JeVikwp2AmL9kfjZiPk25iNT4w\nfKMxV8urX9HeyErm9sgkcPAf+GnVD9rBvFCgWABw5TNfKiNaPxeicLjTPCwB\nGU12\r\n=3fzM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBMd+DQWT4jUPnVz1Jg3cXsTL8tzf0l4T5SqYJrLdfJCAiB/PlwyXjBAwGqeRMtKuX1d3s5ePe+W8DZPzmPUzxlTTw=="}]},"maintainers":[{"name":"baadc0de","email":"bojan@distopiksound.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/audioworklet-polyfill_1.1.2_1546971725663_0.5288620244979176"},"_hasShrinkwrap":false}},"time":{"created":"2019-01-08T18:22:05.494Z","1.1.2":"2019-01-08T18:22:05.781Z","modified":"2022-04-04T17:24:37.041Z"},"maintainers":[{"name":"baadc0de","email":"bojan@distopiksound.com"}],"description":"AudioWorklet polyfill using the legacy ScriptProcessor API.","homepage":"https://github.com/GoogleChromeLabs/audioworklet-polyfill#readme","keywords":["audio","worklet","polyfill","audio worklet","scriptprocessornode","web audio"],"repository":{"type":"git","url":"git+https://github.com/GoogleChromeLabs/audioworklet-polyfill.git"},"contributors":[{"name":"Jason Miller","email":"developit@google.com"}],"author":{"name":"The Chromium Authors"},"bugs":{"url":"https://github.com/GoogleChromeLabs/audioworklet-polyfill/issues"},"license":"Apache-2.0","readme":"<p align=\"center\">\n  <img src=\"https://i.imgur.com/RqW6b4o.png\" width=\"200\" height=\"200\" alt=\"AudioWorklet Polyfill\">\n  <h1 align=\"center\">\n  \tAudioWorklet Polyfill\n\t<a href=\"https://www.npmjs.org/package/audioworklet-polyfill\"><img src=\"https://img.shields.io/npm/v/audioworklet-polyfill.svg?style=flat\" alt=\"npm\"></a>\n  </h1>\n  <h3 align=\"center\">1kB polyfill for <a href=\"https://developers.google.com/web/updates/2017/12/audio-worklet\">AudioWorklet</a>.</h3>\n</p>\n\n`audioworklet-polyfill` is a tiny JavaScript library that brings AudioWorklet support to all major browsers: Chrome, Firefox, Safari and Edge. It uses ScriptProcessorNode under the hood, and runs your Worklet code in an isolated scope on the main thread ([read why](#why-are-worklets-emulated-on-the-main-thread)).\n\n| [Basic Demo](https://googlechromelabs.github.io/audioworklet-polyfill/) | [DSP Playground Demo](https://audio-dsp-playground-polyfilled.surge.sh) |\n|-|-|\n\n> **New to AudioWorklet?** Check out this great [Introduction and Demos](https://developers.google.com/web/updates/2017/12/audio-worklet) or the [AudioWorklet Examples].\n\n## Usage\n\n```html\n<script src=\"audioworklet-polyfill.js\"></script>\n<!-- or: -->\n<script src=\"https://unpkg.com/audioworklet-polyfill/dist/audioworklet-polyfill.js\"></script>\n```\n\nOr with a bundler:\n\n```js\nimport 'audioworklet-polyfill';\n```\n\n... or with ES Modules on the web:\n\n```js\nimport('https://unpkg.com/audioworklet-polyfill/dist/audioworklet-polyfill.js');\n```\n\n## Roadmap\n\n- Improve support for custom parameters\n\n## Why are Worklets emulated on the main thread?\n\nThis polyfill is intended to be a bridging solution until AudioWorklet is implemented across all browsers. It's an improvement over ScriptProcessorNode even though that's what it uses under the hood, because code written using this polyfill is forwards-compatible: as native support improves, your application improves. This polyfill offers a simple, future-proof alternative to ScriptProcessorNode without introducing Workers or relying on shared memory.\n\n## Similar Libraries\n\n[@jariseon](https://github.com/jariseon) has implemented [a similar polyfill](https://github.com/jariseon/audioworklet-polyfill) that uses Web Workers for audio processing.\n\n## License\n\n[Apache 2.0](LICENSE)\n\n[AudioWorklet]: https://webaudio.github.io/web-audio-api/#AudioWorklet\n[AudioWorklet Examples]: https://googlechromelabs.github.io/web-audio-samples/audio-worklet/\n","readmeFilename":"README.md"}