{"_id":"extension-port-stream","_rev":"43-2c2409346a1f3397e97facefb0d8fde9","name":"extension-port-stream","dist-tags":{"latest":"5.0.3"},"versions":{"1.0.0":{"name":"extension-port-stream","version":"1.0.0","keywords":["WebExtension","Stream"],"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","_id":"extension-port-stream@1.0.0","maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"}],"homepage":"https://github.com/MetaMask/extension-port-stream#readme","bugs":{"url":"https://github.com/MetaMask/extension-port-stream/issues"},"dist":{"shasum":"5da21d4627dfef6013ae101cb3ff8eacaf18b279","tarball":"https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-1.0.0.tgz","fileCount":3,"integrity":"sha512-FsFr64yr6ituPdaGP6Io5recGFWVjJoDYt7asz2AvPkYqGN9c923nmEtyHH+413066bjGcQZaF8w5wn9HbNXiQ==","signatures":[{"sig":"MEQCIHF1bV9iPy1hsgytWC7Z2MpjBno0y107Hn8Hj6/m/x3wAiBweJmTHmOMYVTvT6Mt3PZFVA9Z1ta3iuw1YYiebbyzEw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2909,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbbIPdCRA9TVsSAnZWagAAF4sP/1d8+BbB+Kzu8lX/78gE\ndgwnNZsLY7RE2YaQdMOTHafJCZGJ1MyByYS7cKiMLgv77WLhvxjU3gXCP6Iv\nVs4YA7ijZ/Be+rjg0MCNaKTcfcXl98E4t6lx+PH2nTrG0PNK+Twt8Q1cCodf\niytqnsM85f6dTu8nB2MfXJK7jlDEE16ol35yCiHbrUzZZriOmM0+dVbdYKwT\nO/bvZ0VzgFUZiFA6KL3CZU1OH3WynbLQugvHztfYJi/jP9RY4euFT644Ya6g\nJfVvTZoY8xSx6EDT3zwet+zCCoNJqA3x/K40e67ltm7GGA27zx6RqmLUn9hl\nYPRr5aODTI+t3ijKSKEFgaPBjyDqRFSBy4ZjVbtQIxs+Q4iP9BDw7udkZLZF\n1F2LF2JoYH4lxYu/92X+8D6trI8LS14KF2rF4mOPlyTyCHQU8Dx07w2qy47d\njLc8mkH7TqYGYv7wP+IoRwo4DSCShwLFpEJ/rBU+bOapMJqlDfh5KaGUdYnb\nI+GlQQC4Q+K8NIxicJqovti1GnhMqkDaIh10daQYAsxf0wt+hxx/e6PJ9GjR\nCbrXgTghz+FSDDlcmarT+AgLglQrHGifR1Db7FwR8GDXFFacl6rAZUcCQntn\nAo6vCDTFQZicX80HceZ7MXigOdnJWJfUMfIOR1kY/nZHyJZpgUzM+0Hdy877\nvlrw\r\n=hSTz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"63df7e38c7cc837e5931569e6b590e7000b974cb","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"danfinlay","email":"dan@danfinlay.com"},"repository":{"url":"git+ssh://git@github.com/MetaMask/extension-port-stream.git","type":"git"},"_npmVersion":"6.1.0","description":"A module for creating a node style stream over a WebExtension port object.","directories":{},"_nodeVersion":"9.4.0","dependencies":{"util":"^0.11.0","readable-stream":"^2.3.6"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/extension-port-stream_1.0.0_1533838300630_0.019172808218616666","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"extension-port-stream","version":"2.0.0","keywords":["WebExtension","Stream"],"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","_id":"extension-port-stream@2.0.0","maintainers":[{"name":"gudahtt","email":"markjstacey@gmail.com"},{"name":"metamaskbot","email":"security@metamask.io"},{"name":"estebanmino","email":"efmino@uc.cl"},{"name":"rekmarks","email":"rekmarks@protonmail.com"},{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"kumavis","email":"aaron@kumavis.me"}],"homepage":"https://github.com/MetaMask/extension-port-stream#readme","bugs":{"url":"https://github.com/MetaMask/extension-port-stream/issues"},"dist":{"shasum":"c52da241eef4643171b7c6d696baa4a3453c5a9a","tarball":"https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-2.0.0.tgz","fileCount":7,"integrity":"sha512-7ju8jisPXY8w8UiUczF61hRN6bpx/YTZYU9J901GnEqu7vQnweMAwS30k+SgXCcY9S38Zno+fhuu1iaxd+0swg==","signatures":[{"sig":"MEUCIQDeWFVBjquEgE0pv7C9/bBDNMPOKdtXJfjvbR9X4VSe3wIgYXCuW2OeYbit/eGiFoEGwlQ1ANT6HYI6h1A0EDYlAAk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15083,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvDrcCRA9TVsSAnZWagAA36wQAKBWjsleu1Sk4T+qoj06\nKe8dhiRxKMALMhyEB7Jo8shj69xxYumw/5TEz2hJxhs0HrgYWggs3jnZuUF1\n9DIgNyiCvRRg4YB/RJizrl/xHCK+/uZzbFbbC58pClOyV0XXeMGwWXQFCdTi\nfVPtxMI8pW+N12Mnjl0AYVDn0xTndG24FBRyGYS6dcNz7uzZ6Vu/VscBx+3J\neZnSmuLAA0HbZgkileOtvZ8mt1K011n0qNS4x2pmGP0pX1WA7ZFD2aw9gaUP\nA6PG+WG2z86XNoCKKLeVReUVYs83F8QCRtX8S5yhWxe8/C6Ud/QsCkTJqOUj\nOmauNuf1o0jyzUKWI5OfbT/xF7UoH+haaPlqYGdXH/fCgpAm5Do+TJzAvfrP\nZkdcO5AD6bmR+UAF1jLLAnuZJIIiQbqjSJNR3HlSHwi2VNaDJ1Z3skC/s6c3\nbUmnYFMuq7bhiC2wVbseCDbB5wD+6WRz5KZBN7SxRZWZaZemtavdaD/L0eZ2\nVW/AwRO/DLfxCTKRJhYnb/2YPqbEuYDmbdKDdL64ejJJSK5AVlYDw3AH15eA\nACKaZpTurCmjf5mMOTlf/6s0JFaHod/AONXGmVXIW3pEXYZjmjS9IO2ZiYaM\n6d340u2OkLHyD+NnA4mgXojiGNoWctXfR72EXSo+aiHda4SLnv/PVi27dqUZ\nnNqv\r\n=Eo2G\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"9a9e6af7174a6ca4a6645276f9aa3ab9ba2e99c1","scripts":{"lint":"eslint . --ext ts,js,json","test":"echo \"Error: no test specified\" && exit 1","build":"tsc --project .","lint:fix":"yarn lint --fix"},"_npmUser":{"name":"rekmarks","email":"rekmarks@protonmail.com"},"repository":{"url":"git+ssh://git@github.com/MetaMask/extension-port-stream.git","type":"git"},"_npmVersion":"6.14.8","description":"A module for creating a node style stream over a WebExtension port object.","directories":{},"_nodeVersion":"14.10.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.13.0","typescript":"^4.0.5","@types/node":"14.14.7","eslint-plugin-json":"^2.1.2","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.22.1","@metamask/eslint-config":"^4.1.0","webextension-polyfill-ts":"^0.22.0","@typescript-eslint/parser":"^4.8.1","@typescript-eslint/eslint-plugin":"^4.8.1"},"_npmOperationalInternal":{"tmp":"tmp/extension-port-stream_2.0.0_1606171355444_0.5316431934537746","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"extension-port-stream","version":"2.0.1","keywords":["WebExtension","Stream"],"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","_id":"extension-port-stream@2.0.1","maintainers":[{"name":"brad.decker","email":"bhdecker84@gmail.com"},{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"rekmarks","email":"rekmarks@protonmail.com"},{"name":"estebanmino","email":"efmino@uc.cl"},{"name":"metamaskbot","email":"security@metamask.io"},{"name":"gudahtt","email":"markjstacey@gmail.com"}],"homepage":"https://github.com/MetaMask/extension-port-stream#readme","bugs":{"url":"https://github.com/MetaMask/extension-port-stream/issues"},"dist":{"shasum":"d374820c581418c2275d3c4439ade0b82c4cfac6","tarball":"https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-2.0.1.tgz","fileCount":7,"integrity":"sha512-ltrv4Dh/979I04+D4Te6TFygfRSOc5EBzzlHRldWMS8v73V80qWluxH88hqF0qyUsBXTb8NmzlmSipcre6a+rg==","signatures":[{"sig":"MEUCIQDPtJlfUeEXGvR5xqvLp4FkHY+oNkVmW5IrK9+kKIQDBQIgH3TMCIKO15nM9ZepmTKPXYD/26RwVvnAarAtmlkT4Os=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgi1V6CRA9TVsSAnZWagAAl6IP/R2B23mU21Sfzo/Y8CFp\nheLP4pCw2ECqJTlsdsWzqLHrDmbk7MuFTB0ARibkvkcc4BcPJxkt6xUXXExa\nDxC9XkU2afa3QuvARIeN4VNklzP08a6te218OElJ189mecQ/TEmuJtD79JJg\nVr2+dp9ZQ6fExWtyAg9vFeIGZuaZwfoEDKNY74RArGz2Fw2bsBb9+hQupMuF\nFFnNzYgEuJoTfns6eskRNdCRX5YJeasUxXHsAjDqskua5mwT7WWvhZVZCqhO\nq0jkIsjydbckqZ1XyE4o5gbaIcdvc+LMi9Xgepve45Xevu5RHMOCkAs8BwMW\nEjMVNlVWK1CTHxCLsTLXBfMfhD03Z597mGLsBs0oWsILnDyEPZ+dRlUUsuTO\nIl5OgdeAvDTG3qygxuanQWHcuUxR9j19/Lg7nXRu389SUyTnTN3kmp7w+Gmt\nbEaNS8pIXG/fYS/BkQ6nvizJ0gk6zQfUVHvwYl1QxqzFu3ceVMez3t9A1r59\ntEZpH0EdoijN/xMaTEN9jBwzf2oequb63bYCERZtb80i5/t6zt5mR9o+w2Pv\nZwoVn55VYemihh6EwX/Y8dcFXLeKam5X41pWXAa2W/UI2lffbTtEmsY79rNS\nNUQh4o1jSzvHSydu9xKr5E+18Kuyifu704zKFfSU/MERtsrdlWvkmUcfdie/\nIS28\r\n=AtTf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","engines":{"node":">=12.0.0"},"gitHead":"411e16df69c1ff50c38952074dd43ba0bac4a332","scripts":{"lint":"eslint . --ext ts,js,json","test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf ./dist && tsc --project .","lint:fix":"yarn lint --fix"},"_npmUser":{"name":"rekmarks","email":"rekmarks@protonmail.com"},"repository":{"url":"git+ssh://git@github.com/MetaMask/extension-port-stream.git","type":"git"},"_npmVersion":"7.6.0","description":"A module for creating a node style stream over a WebExtension port object.","directories":{},"_nodeVersion":"15.11.0","dependencies":{"webextension-polyfill-ts":"^0.22.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.13.0","typescript":"^4.0.5","@types/node":"14.14.7","eslint-plugin-json":"^2.1.2","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.22.1","@metamask/eslint-config":"^4.1.0","@typescript-eslint/parser":"^4.8.1","@typescript-eslint/eslint-plugin":"^4.8.1"},"_npmOperationalInternal":{"tmp":"tmp/extension-port-stream_2.0.1_1619744122469_0.6051733973731084","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"extension-port-stream","version":"2.1.1","keywords":["WebExtension","Stream"],"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","_id":"extension-port-stream@2.1.1","maintainers":[{"name":"naugtur","email":"naugtur@gmail.com"},{"name":"ritave","email":"olaf@tomalka.me"},{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"rekmarks","email":"rekmarks@protonmail.com"},{"name":"metamaskbot","email":"security@metamask.io"},{"name":"gudahtt","email":"markjstacey@gmail.com"},{"name":"brad.decker","email":"bhdecker84@gmail.com"},{"name":"sethkfman","email":"sethkfman@gmail.com"}],"homepage":"https://github.com/MetaMask/extension-port-stream#readme","bugs":{"url":"https://github.com/MetaMask/extension-port-stream/issues"},"dist":{"shasum":"ec11f2a5ed95655d8c40805d7cb0c39939ee9ef4","tarball":"https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-2.1.1.tgz","fileCount":7,"integrity":"sha512-qknp5o5rj2J9CRKfVB8KJr+uXQlrojNZzdESUPhKYLXf97TPcGf6qWWKmpsNNtUyOdzFhab1ON0jzouNxHHvow==","signatures":[{"sig":"MEYCIQCWda1R0ipIzjVsU16tI3M7PxHs4++qvl8E3uMt+zxG4gIhAM6UuEms9I2Q2e/dilzlInhWTxhRWr2gkEAQ5ir8Uf2o","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10114},"main":"dist/index.js","engines":{"node":">=12.0.0"},"gitHead":"9087a6a51f85dd99447c16a9011c105c26c6aa58","scripts":{"lint":"eslint . --ext ts,js,json","test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf ./dist && tsc --project .","lint:fix":"yarn lint --fix","prepublishOnly":"yarn build && yarn lint"},"_npmUser":{"name":"gudahtt","email":"markjstacey@gmail.com"},"repository":{"url":"git+https://git@github.com/MetaMask/extension-port-stream.git","type":"git"},"_npmVersion":"6.14.13","description":"A module for creating a node style stream over a WebExtension port object.","directories":{},"_nodeVersion":"12.22.3","dependencies":{"webextension-polyfill":">=0.10.0 <1.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.13.0","typescript":"^4.0.5","@types/node":"14.14.7","eslint-plugin-json":"^2.1.2","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.22.1","@metamask/eslint-config":"^4.1.0","@typescript-eslint/parser":"^4.8.1","@types/webextension-polyfill":">=0.10.0 <1.0","@typescript-eslint/eslint-plugin":"^4.8.1"},"_npmOperationalInternal":{"tmp":"tmp/extension-port-stream_2.1.1_1687204533342_0.9290728584159069","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"extension-port-stream","version":"3.0.0","keywords":["WebExtension","Stream"],"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","_id":"extension-port-stream@3.0.0","maintainers":[{"name":"mcmire","email":"elliot.winkler@gmail.com"},{"name":"nicholasellul","email":"nicholas.ellul1@gmail.com"},{"name":"lgbot","email":"khebkoh9@anonaddy.me"},{"name":"naugtur","email":"naugtur@gmail.com"},{"name":"ritave","email":"olaf@tomalka.me"},{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"rekmarks","email":"rekmarks@protonmail.com"},{"name":"metamaskbot","email":"security@metamask.io"},{"name":"gudahtt","email":"markjstacey@gmail.com"},{"name":"brad.decker","email":"bhdecker84@gmail.com"},{"name":"sethkfman","email":"sethkfman@gmail.com"}],"homepage":"https://github.com/MetaMask/extension-port-stream#readme","bugs":{"url":"https://github.com/MetaMask/extension-port-stream/issues"},"dist":{"shasum":"00a7185fe2322708a36ed24843c81bd754925fef","tarball":"https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-3.0.0.tgz","fileCount":7,"integrity":"sha512-an2S5quJMiy5bnZKEf6AkfH/7r8CzHvhchU40gxN+OM6HPhe7Z9T1FUychcf2M9PpPOO0Hf7BAEfJkw2TDIBDw==","signatures":[{"sig":"MEQCIDkBpFN0cKazA9PlXOMrV851xct6tlWP97Mw/Vqkyz+YAiBv7wwASr+tgd7k5+g4NAbZCMsIm9ixA7gbFGmGJl2eyw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10487},"main":"dist/index.js","engines":{"node":">=12.0.0"},"gitHead":"b442144287f02cdc4fadc37b7429fc4a0e0b2b30","scripts":{"lint":"eslint . --ext ts,js,json","test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf ./dist && tsc --project .","lint:fix":"yarn lint --fix","prepublishOnly":"yarn build && yarn lint"},"_npmUser":{"name":"lgbot","email":"khebkoh9@anonaddy.me"},"repository":{"url":"git+https://git@github.com/MetaMask/extension-port-stream.git","type":"git"},"_npmVersion":"6.14.16","description":"A module for creating a node style stream over a WebExtension port object.","directories":{},"_nodeVersion":"12.22.12","dependencies":{"readable-stream":"^3.6.2 || ^4.4.2","webextension-polyfill":">=0.10.0 <1.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.13.0","typescript":"^4.0.5","@types/node":"14.14.7","eslint-plugin-json":"^2.1.2","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.22.1","@types/readable-stream":"4.0.0","@metamask/eslint-config":"^4.1.0","@typescript-eslint/parser":"^4.8.1","@types/webextension-polyfill":">=0.10.0 <1.0","@typescript-eslint/eslint-plugin":"^4.8.1"},"_npmOperationalInternal":{"tmp":"tmp/extension-port-stream_3.0.0_1698380243667_0.09516565946971145","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"extension-port-stream","version":"4.0.0","keywords":["WebExtension","Stream"],"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","_id":"extension-port-stream@4.0.0","maintainers":[{"name":"mcmire","email":"elliot.winkler@gmail.com"},{"name":"nicholasellul","email":"nicholas.ellul1@gmail.com"},{"name":"lgbot","email":"khebkoh9@anonaddy.me"},{"name":"naugtur","email":"naugtur@gmail.com"},{"name":"ritave","email":"olaf@tomalka.me"},{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"rekmarks","email":"rekmarks@protonmail.com"},{"name":"metamaskbot","email":"security@metamask.io"},{"name":"gudahtt","email":"markjstacey@gmail.com"},{"name":"sethkfman","email":"sethkfman@gmail.com"}],"homepage":"https://github.com/MetaMask/extension-port-stream#readme","bugs":{"url":"https://github.com/MetaMask/extension-port-stream/issues"},"dist":{"shasum":"357cd2c542c76984c4f234fe7995635654bf266f","tarball":"https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-4.0.0.tgz","fileCount":7,"integrity":"sha512-XCGLikjAOtr6+LlcUiS88Azf9M5xG/zaO0oMLH308N8qnIxNYmkkYVitGWqvKkDXBENnrfik71n5eHA2ikSoFA==","signatures":[{"sig":"MEQCIHsIPqcjgPQOhhmr36s3ioQ89XkBJdqj9QjXXPFnonl9AiAsrZVeUkehSs/XntZlAZv8HWFMN1lRDpN30emZ8rpsow==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11016},"main":"dist/index.js","engines":{"node":">=12.0.0"},"gitHead":"a1049163c74579e58e70c9c3df75b85cecf8c588","scripts":{"lint":"eslint . --ext ts,js,json","test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf ./dist && tsc --project .","lint:fix":"yarn lint --fix","prepublishOnly":"yarn build && yarn lint"},"_npmUser":{"name":"lgbot","email":"khebkoh9@anonaddy.me"},"repository":{"url":"git+https://git@github.com/MetaMask/extension-port-stream.git","type":"git"},"_npmVersion":"6.14.18","description":"A module for creating a node style stream over a WebExtension port object.","directories":{},"_nodeVersion":"14.21.3","dependencies":{"readable-stream":"^3.6.2 || ^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.13.0","typescript":"^4.0.5","@types/node":"14.14.7","eslint-plugin-json":"^2.1.2","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.22.1","webextension-polyfill":">=0.10.0 <1.0","@types/readable-stream":"4.0.0","@metamask/eslint-config":"^4.1.0","@typescript-eslint/parser":"^4.8.1","@types/webextension-polyfill":">=0.10.0 <1.0","@typescript-eslint/eslint-plugin":"^4.8.1"},"peerDependencies":{"webextension-polyfill":"^0.10.0 || ^0.11.0 || ^0.12.0"},"_npmOperationalInternal":{"tmp":"tmp/extension-port-stream_4.0.0_1718667064346_0.9226149680913913","host":"s3://npm-registry-packages"}},"4.1.0":{"name":"extension-port-stream","version":"4.1.0","keywords":["WebExtension","Stream"],"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","_id":"extension-port-stream@4.1.0","maintainers":[{"name":"mcmire","email":"elliot.winkler@gmail.com"},{"name":"nicholasellul","email":"nicholas.ellul1@gmail.com"},{"name":"lgbot","email":"khebkoh9@anonaddy.me"},{"name":"naugtur","email":"naugtur@gmail.com"},{"name":"ritave","email":"olaf@tomalka.me"},{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"rekmarks","email":"rekmarks@protonmail.com"},{"name":"metamaskbot","email":"security@metamask.io"},{"name":"gudahtt","email":"markjstacey@gmail.com"},{"name":"sethkfman","email":"sethkfman@gmail.com"}],"homepage":"https://github.com/MetaMask/extension-port-stream#readme","bugs":{"url":"https://github.com/MetaMask/extension-port-stream/issues"},"dist":{"shasum":"592932cb9e1affb30800f68dc085638cb245c4e2","tarball":"https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-4.1.0.tgz","fileCount":6,"integrity":"sha512-8K4I9+I++cwxD0ICh7U/nYc9ynf0ZUgEBNbcPs6Fk9nDAzKNhXUHByvJDO9VZ2aZzbEstjRylOac1HSoJK2K+g==","signatures":[{"sig":"MEQCIGl3gTkBCtcDehCmxxzR8GEJrkbMQmWOwBUTsJGHt8IeAiB+nuWj7wP1V92+85TfKB5sSNY2TNtmTwJJ8QfC8LuYnw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8410},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=12.0.0"},"gitHead":"ed94efc3b5bf49f53d1a4685ebe47ca1062edfde","scripts":{"lint":"eslint . --ext ts,js,json","test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf ./dist && tsc --project .","lint:fix":"yarn lint --fix","prepublishOnly":"yarn build && yarn lint"},"_npmUser":{"name":"lgbot","email":"khebkoh9@anonaddy.me"},"repository":{"url":"git+https://git@github.com/MetaMask/extension-port-stream.git","type":"git"},"_npmVersion":"10.7.0","description":"A module for creating a node style stream over a WebExtension port object.","directories":{},"_nodeVersion":"18.20.3","dependencies":{"readable-stream":"^3.6.2 || ^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.13.0","typescript":"^4.0.5","@types/node":"14.14.7","eslint-plugin-json":"^2.1.2","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.22.1","webextension-polyfill":">=0.10.0 <1.0","@types/readable-stream":"4.0.0","@metamask/eslint-config":"^4.1.0","@typescript-eslint/parser":"^4.8.1","@types/webextension-polyfill":">=0.10.0 <1.0","@typescript-eslint/eslint-plugin":"^4.8.1"},"peerDependencies":{"webextension-polyfill":"^0.10.0 || ^0.11.0 || ^0.12.0"},"_npmOperationalInternal":{"tmp":"tmp/extension-port-stream_4.1.0_1718754432480_0.897384183797844","host":"s3://npm-registry-packages"}},"4.2.0":{"name":"extension-port-stream","version":"4.2.0","keywords":["WebExtension","Stream"],"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","_id":"extension-port-stream@4.2.0","homepage":"https://github.com/MetaMask/extension-port-stream#readme","bugs":{"url":"https://github.com/MetaMask/extension-port-stream/issues"},"dist":{"shasum":"c3966488f1c39759bbcec7593945fe40187b770f","tarball":"https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-4.2.0.tgz","fileCount":6,"integrity":"sha512-i5IgiPVMVrHN+Zx8PRjvFsOw8L1A3sboVwPZghDjW9Yp1BMmBDE6mCcTNu4xMXPYduBOwI3CBK7wd72LcOyD6g==","signatures":[{"sig":"MEUCIALgRAJ37S4jNZ1WUL1LDDEP6jridJLYVNr7CHuvMfO/AiEA9IxaZ7m38Plg2M1h0+1pptZcMjQTovxLqVOY/wh5uok=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8693},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=12.0.0"},"gitHead":"61d76bc5f846df34566d412622d8f49e59ddfe5a","scripts":{"lint":"eslint . --ext ts,js,json","test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf ./dist && tsc --project .","lint:fix":"yarn lint --fix","prepublishOnly":"yarn build && yarn lint"},"_npmUser":{"name":"lgbot","email":"khebkoh9@anonaddy.me"},"repository":{"url":"git+https://git@github.com/MetaMask/extension-port-stream.git","type":"git"},"_npmVersion":"8.19.4","description":"A module for creating a node style stream over a WebExtension port object.","directories":{},"_nodeVersion":"16.20.2","dependencies":{"readable-stream":"^3.6.2 || ^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.13.0","typescript":"^4.0.5","@types/node":"14.14.7","eslint-plugin-json":"^2.1.2","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.22.1","webextension-polyfill":">=0.10.0 <1.0","@types/readable-stream":"4.0.0","@metamask/eslint-config":"^4.1.0","@typescript-eslint/parser":"^4.8.1","@types/webextension-polyfill":">=0.10.0 <1.0","@typescript-eslint/eslint-plugin":"^4.8.1"},"peerDependencies":{"webextension-polyfill":"^0.10.0 || ^0.11.0 || ^0.12.0"},"_npmOperationalInternal":{"tmp":"tmp/extension-port-stream_4.2.0_1719869350906_0.5430702565729717","host":"s3://npm-registry-packages"}},"5.0.0":{"name":"extension-port-stream","version":"5.0.0","keywords":["WebExtension","Stream"],"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","_id":"extension-port-stream@5.0.0","maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"metamaskbot","email":"metamask-npm@consensys.net"}],"homepage":"https://github.com/MetaMask/extension-port-stream#readme","bugs":{"url":"https://github.com/MetaMask/extension-port-stream/issues"},"dist":{"shasum":"e0e0f44f9065e48314427d96571ca262cc4735f1","tarball":"https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-5.0.0.tgz","fileCount":18,"integrity":"sha512-F81GiNknMWhvh029xmfBdboobQejd5kZNXVnz2ZRPXH/Cgg7d9vIl3fDJa5ufoJItS4Hyh+mXui/BvtSeHI01A==","signatures":[{"sig":"MEYCIQCDSJqgEKbIsid71DmGfPexf0KyOKnbcnfthoQjgx9ZwwIhAMOo2G2SS7tSvAwlwydZ5AzzhkhQkWTfX5e8TE76a/yA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46235},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=22.15.0"},"gitHead":"b35286a7445363c5fbfae87a054fe293c5211d89","scripts":{"lint":"eslint . --ext ts,js,json","test":"jest","build":"rm -rf ./dist && tsc --project .","lint:fix":"yarn lint --fix","test:coverage":"jest --coverage","prepublishOnly":"yarn build && yarn lint"},"_npmUser":{"name":"metamaskbot","email":"metamask-npm@consensys.net"},"repository":{"url":"git+https://git@github.com/MetaMask/extension-port-stream.git","type":"git"},"_npmVersion":"10.9.2","description":"A module for creating a node style stream over a WebExtension port object.","directories":{},"_nodeVersion":"22.15.1","dependencies":{"readable-stream":"^3.6.2 || ^4.4.2"},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","devDependencies":{"jest":"^30.0.5","eslint":"^7.13.0","ts-jest":"^29.4.1","typescript":"^5.9.2","@types/jest":"^30.0.0","@types/node":"^24.3.0","@types/lodash":"^4.17.20","@metamask/utils":"^11.4.2","eslint-plugin-json":"^2.1.2","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.22.1","webextension-polyfill":">=0.10.0 <1.0","@types/readable-stream":"4.0.21","@metamask/eslint-config":"^4.1.0","@typescript-eslint/parser":"^4.8.1","@types/webextension-polyfill":">=0.10.0 <1.0","@typescript-eslint/eslint-plugin":"^4.8.1"},"peerDependencies":{"webextension-polyfill":"^0.10.0 || ^0.11.0 || ^0.12.0"},"_npmOperationalInternal":{"tmp":"tmp/extension-port-stream_5.0.0_1759423575497_0.8785162254279217","host":"s3://npm-registry-packages-npm-production"}},"5.0.1":{"name":"extension-port-stream","version":"5.0.1","keywords":["WebExtension","Stream"],"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","_id":"extension-port-stream@5.0.1","maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"metamaskbot","email":"metamask-npm@consensys.net"},{"name":"gudahtt","email":"markjstacey@gmail.com"}],"homepage":"https://github.com/MetaMask/extension-port-stream#readme","bugs":{"url":"https://github.com/MetaMask/extension-port-stream/issues"},"dist":{"shasum":"bd33c9be6370e3a2d5d0240c4ab3cff50eb60d52","tarball":"https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-5.0.1.tgz","fileCount":18,"integrity":"sha512-lxS+ZmQvRHT8W/BCDNwYakPIh7+zVF5k2rZN6WSW7N1AH5QErlsPw1htdbBzjwKJKKKcn1nIpLbzm++dykDflQ==","signatures":[{"sig":"MEUCIA3OLFLsxRC+IIoEdaoFrsQqngvkbVWx73zbpbbjq8Z5AiEAtD/tslgtl6h7ISfmNrLeBZtb4miBeEaDtuSmJRU4ltU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47188},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=22.15.0"},"gitHead":"2069ba907066b9597d00458f0f7c876311b38f12","scripts":{"lint":"eslint . --ext ts,js,json","test":"jest","build":"rm -rf ./dist && tsc --project .","lint:fix":"yarn lint --fix","test:coverage":"jest --coverage","prepublishOnly":"yarn build && yarn lint"},"_npmUser":{"name":"gudahtt","email":"markjstacey@gmail.com"},"lavamoat":{"allowScripts":{"@lavamoat/preinstall-always-fail":false,"jest>@jest/core>jest-resolve>unrs-resolver":false}},"repository":{"url":"git+https://git@github.com/MetaMask/extension-port-stream.git","type":"git"},"_npmVersion":"11.6.0","description":"A module for creating a node style stream over a WebExtension port object.","directories":{},"_nodeVersion":"22.15.1","dependencies":{"readable-stream":"^3.6.2 || ^4.4.2"},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","devDependencies":{"jest":"^30.0.5","eslint":"^7.13.0","ts-jest":"^29.4.1","typescript":"^5.9.2","@types/jest":"^30.0.0","@types/node":"^24.3.0","@types/lodash":"^4.17.20","@metamask/utils":"^11.4.2","eslint-plugin-json":"^2.1.2","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.22.1","webextension-polyfill":">=0.10.0 <1.0","@types/readable-stream":"4.0.21","@lavamoat/allow-scripts":"^3.0.4","@metamask/eslint-config":"^4.1.0","@typescript-eslint/parser":"^4.8.1","@types/webextension-polyfill":">=0.10.0 <1.0","@lavamoat/preinstall-always-fail":"^2.0.0","@typescript-eslint/eslint-plugin":"^4.8.1"},"peerDependencies":{"webextension-polyfill":"^0.10.0 || ^0.11.0 || ^0.12.0"},"_npmOperationalInternal":{"tmp":"tmp/extension-port-stream_5.0.1_1764888419561_0.7086125934539063","host":"s3://npm-registry-packages-npm-production"}},"5.0.2":{"name":"extension-port-stream","version":"5.0.2","keywords":["WebExtension","Stream"],"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","_id":"extension-port-stream@5.0.2","maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"metamaskbot","email":"metamask-npm@consensys.net"},{"name":"gudahtt","email":"markjstacey@gmail.com"}],"homepage":"https://github.com/MetaMask/extension-port-stream#readme","bugs":{"url":"https://github.com/MetaMask/extension-port-stream/issues"},"dist":{"shasum":"d3985bd73421798da69f16ce9caa6cd0e4753cc6","tarball":"https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-5.0.2.tgz","fileCount":18,"integrity":"sha512-gWJ+X9zYixRCCbZMp8pl/cBL0AH4S+DcIoiYYoKwMYlqpEs9sWNszt8IYTbYhL2Zmt+nLwG97qiUtSVDUO5ugQ==","signatures":[{"sig":"MEUCIDOVcBBwoAIMFNImWmuU5SuriCN31v81Bli29d0IuMJfAiEA0gyL6vvQDxc0wRLQcJQ7fgLSehj5FlOFQWt4/mx/iJI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49453},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=22.15.0"},"gitHead":"6e3636dc3339773efaa3eb6f3be44c72a8532a16","scripts":{"lint":"eslint . --ext ts,js,json","test":"jest","build":"rm -rf ./dist && tsc --project .","lint:fix":"yarn lint --fix","test:coverage":"jest --coverage","prepublishOnly":"yarn build && yarn lint"},"_npmUser":{"name":"gudahtt","email":"markjstacey@gmail.com"},"lavamoat":{"allowScripts":{"@lavamoat/preinstall-always-fail":false,"jest>@jest/core>jest-resolve>unrs-resolver":false}},"repository":{"url":"git+https://git@github.com/MetaMask/extension-port-stream.git","type":"git"},"_npmVersion":"11.6.0","description":"A module for creating a node style stream over a WebExtension port object.","directories":{},"_nodeVersion":"22.15.1","dependencies":{"readable-stream":"^3.6.2 || ^4.4.2"},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","devDependencies":{"jest":"^30.0.5","eslint":"^7.13.0","ts-jest":"^29.4.1","typescript":"^5.9.2","@types/jest":"^30.0.0","@types/node":"^24.3.0","@types/lodash":"^4.17.20","@metamask/utils":"^11.4.2","eslint-plugin-json":"^2.1.2","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.22.1","webextension-polyfill":">=0.10.0 <1.0","@types/readable-stream":"4.0.21","@lavamoat/allow-scripts":"^3.0.4","@metamask/eslint-config":"^4.1.0","@typescript-eslint/parser":"^4.8.1","@types/webextension-polyfill":">=0.10.0 <1.0","@lavamoat/preinstall-always-fail":"^2.0.0","@typescript-eslint/eslint-plugin":"^4.8.1"},"peerDependencies":{"webextension-polyfill":"^0.10.0 || ^0.11.0 || ^0.12.0"},"_npmOperationalInternal":{"tmp":"tmp/extension-port-stream_5.0.2_1766091243133_0.07649330675152721","host":"s3://npm-registry-packages-npm-production"}},"5.0.3":{"name":"extension-port-stream","version":"5.0.3","keywords":["WebExtension","Stream"],"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","_id":"extension-port-stream@5.0.3","maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"metamaskbot","email":"metamask-npm@consensys.net"},{"name":"gudahtt","email":"markjstacey@gmail.com"}],"homepage":"https://github.com/MetaMask/extension-port-stream#readme","bugs":{"url":"https://github.com/MetaMask/extension-port-stream/issues"},"dist":{"shasum":"5af32b6a8dd4b68d29a7c8bf0b591df2ee4646d5","tarball":"https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-5.0.3.tgz","fileCount":18,"integrity":"sha512-dwFMJQxpDjWyH+/LTN3o1YsxyuLNXFzVAkhPth/mRWOorUzNqFZbr1KvPouJ1NinTOcSccQtts+5XqveKNGkeA==","signatures":[{"sig":"MEYCIQCGarZC4F/i7ZS+gsdzyN6bZJFpGFqw9YdrsmPz+dpczgIhALCuMQ0ROGNvjZhEIkFdudHMpVKZL0itDyN79UKkceVX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49435},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=22.15.0"},"gitHead":"ad8846758025db4baf727032da8ad8d7e942f9a6","scripts":{"lint":"eslint . --ext ts,js,json","test":"jest","build":"rm -rf ./dist && tsc --project .","lint:fix":"yarn lint --fix","test:coverage":"jest --coverage","prepublishOnly":"yarn build && yarn lint"},"_npmUser":{"name":"gudahtt","email":"markjstacey@gmail.com"},"lavamoat":{"allowScripts":{"@lavamoat/preinstall-always-fail":false,"jest>@jest/core>jest-resolve>unrs-resolver":false}},"repository":{"url":"git+https://git@github.com/MetaMask/extension-port-stream.git","type":"git"},"_npmVersion":"11.6.0","description":"A module for creating a node style stream over a WebExtension port object.","directories":{},"_nodeVersion":"22.15.1","dependencies":{"readable-stream":"^3.6.2 || ^4.4.2"},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","devDependencies":{"jest":"^30.0.5","eslint":"^7.13.0","ts-jest":"^29.4.1","typescript":"^5.9.2","@types/jest":"^30.0.0","@types/node":"^24.3.0","@types/lodash":"^4.17.20","@metamask/utils":"^11.4.2","eslint-plugin-json":"^2.1.2","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.22.1","webextension-polyfill":">=0.10.0 <1.0","@types/readable-stream":"4.0.21","@lavamoat/allow-scripts":"^3.0.4","@metamask/eslint-config":"^4.1.0","@typescript-eslint/parser":"^4.8.1","@types/webextension-polyfill":">=0.10.0 <1.0","@lavamoat/preinstall-always-fail":"^2.0.0","@typescript-eslint/eslint-plugin":"^4.8.1"},"peerDependencies":{"webextension-polyfill":"^0.10.0 || ^0.11.0 || ^0.12.0"},"_npmOperationalInternal":{"tmp":"tmp/extension-port-stream_5.0.3_1771000888398_0.07719401631327205","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2018-08-09T18:11:40.630Z","modified":"2026-08-26T12:50:43.270Z","1.0.0":"2018-08-09T18:11:40.785Z","2.0.0":"2020-11-23T22:42:35.757Z","2.0.1":"2021-04-30T00:55:22.571Z","2.1.1":"2023-06-19T19:55:33.511Z","3.0.0":"2023-10-27T04:17:23.917Z","4.0.0":"2024-06-17T23:31:04.493Z","4.1.0":"2024-06-18T23:47:12.655Z","4.2.0":"2024-07-01T21:29:11.123Z","5.0.0":"2025-10-02T16:46:15.719Z","5.0.1":"2025-12-04T22:46:59.704Z","5.0.2":"2025-12-18T20:54:03.271Z","5.0.3":"2026-02-13T16:41:28.547Z"},"bugs":{"url":"https://github.com/MetaMask/extension-port-stream/issues"},"author":{"name":"Dan Finlay","email":"dan@danfinlay.com"},"license":"ISC","homepage":"https://github.com/MetaMask/extension-port-stream#readme","keywords":["WebExtension","Stream"],"repository":{"url":"git+https://git@github.com/MetaMask/extension-port-stream.git","type":"git"},"description":"A module for creating a node style stream over a WebExtension port object.","maintainers":[{"email":"frederik.bolding@consensys.net","name":"frederikbolding"},{"email":"metamask-npm@consensys.net","name":"metamaskbot"},{"email":"markjstacey@gmail.com","name":"gudahtt"},{"email":"maarten@zuidhoorn.com","name":"mrten"},{"email":"elliot.winkler@gmail.com","name":"mcmire"},{"email":"naugtur@gmail.com","name":"naugtur"},{"email":"dan@danfinlay.com","name":"danfinlay"}],"readme":"# Extension Port Stream\n\nA module for creating a Node-style stream over a WebExtension [Runtime.Port](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/Port) object.\n\n## Breaking changes from v4 to v5\n\n1. Chunking mode is enabled by default (see the [Usage](#usage) section below).\n2. Node.js-style `Buffer` messages are no longer supported.\n\nAdditionally, the timing of logging, errors, and callbacks may be handled differently.\n\n## Usage\n\nBy default, `ExtensionPortStream` will send messages in 64MB chunks on Chromium-based browsers.\nWhen this mode is used the receiving end must also use `ExtensionPortStream` in its default mode.\n\n```javascript\nimport { ExtensionPortStream } from \"extension-port-stream\";\n\nextension.runtime.onConnect.addListener(connectRemote);\nconst portStream = new ExtensionPortStream(remotePort, {\n  chunkSize: 0, // disable chunking\n});\n\n// Enjoy!\n```\n\nTo disable chunking set the `chunkSize` option to `0`. This will make the transport\nmostly backwards compatible with v4.\n\n```javascript\nimport { ExtensionPortStream } from \"extension-port-stream\";\n\nextension.runtime.onConnect.addListener(connectRemote);\nconst portStream = new ExtensionPortStream(remotePort, {\n  chunkSize: 0, // disable chunking\n});\n\n// Enjoy!\n```\n\n### Events\n\n`ExtensionPortStream` extends Node.js `Duplex` stream, so it inherits all EventEmitter capabilities. Additionally, it emits the following custom events:\n\n#### `message-too-large`\n\nEmitted when a message is too large to send in a single `postMessage` call and needs to be chunked. This event is only emitted when chunking is enabled (default).\n\n```javascript\nimport {\n  ExtensionPortStream,\n  MessageTooLargeEventData,\n} from \"extension-port-stream\";\n\nconst portStream = new ExtensionPortStream(remotePort);\n\nportStream.on(\"message-too-large\", (data: MessageTooLargeEventData) => {\n  console.log(\n    `Message too large (${\n      JSON.stringify(data.message).length\n    } bytes), chunking into ${data.chunkSize}-byte pieces`\n  );\n  console.log(\"Original error:\", data.originalError.message);\n});\n```\n\n## Running tests\n\n```bash\nyarn test\n```\n","readmeFilename":"README.md"}