{"name":"web-streams-polyfill","version":"2.0.0","description":"Web Streams, based on the WHATWG spec reference implementation","main":"dist/polyfill","browser":"dist/polyfill.min.js","module":"dist/polyfill.mjs","types":"dist/types/polyfill.d.ts","scripts":{"test":"npm run test:types && npm run test:wpt","test:wpt":"node --expose_gc ./test/run-web-platform-tests.js","pretest:wpt":"git submodule update --init --recursive","test:types":"tsc -p ./test/types/tsconfig.json","lint":"eslint \"src/**/*.ts\"","build":"npm run build:types && npm run build:bundle","build:bundle":"rollup -c","build:types":"rollup -c rollup-types.config.js","prepare":"npm run build"},"engines":{"node":">= 8"},"repository":{"type":"git","url":"git+https://github.com/MattiasBuelens/web-streams-polyfill.git"},"keywords":["streams","whatwg","polyfill"],"author":{"name":"Mattias Buelens","email":"mattias@buelens.com"},"contributors":[{"name":"Diwank Singh","email":"diwank.singh@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/MattiasBuelens/web-streams-polyfill/issues"},"homepage":"https://github.com/MattiasBuelens/web-streams-polyfill#readme","devDependencies":{"@typescript-eslint/eslint-plugin":"^1.4.2","eslint":"^5.15.1","micromatch":"^3.1.10","rollup":"^1.6.0","rollup-plugin-dts":"^0.13.0","rollup-plugin-inject":"^2.2.0","rollup-plugin-strip":"^1.2.1","rollup-plugin-terser":"^4.0.4","typescript":"^3.3.3","wpt-runner":"^2.7.1"},"readme":"# web-streams-polyfill\n\nWeb Streams, based on the WHATWG spec reference implementation.  \n\n[![build status](https://api.travis-ci.com/MattiasBuelens/web-streams-polyfill.svg?branch=master)](https://travis-ci.com/MattiasBuelens/web-streams-polyfill)\n[![npm version](https://img.shields.io/npm/v/web-streams-polyfill.svg)](https://www.npmjs.com/package/web-streams-polyfill)\n[![license](https://img.shields.io/npm/l/web-streams-polyfill.svg)](https://github.com/MattiasBuelens/web-streams-polyfill/blob/master/LICENSE)\n[![Join the chat at https://gitter.im/web-streams-polyfill/Lobby](https://badges.gitter.im/web-streams-polyfill/Lobby.svg)](https://gitter.im/web-streams-polyfill/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\n## Links\n\n - [Official spec][spec]\n - [Reference implementation][ref-impl]\n\n## Usage\n\nThis library comes in multiple variants:\n* `web-streams-polyfill`: a polyfill that replaces the native stream implementations.\n  Recommended for use in web apps supporting older browsers through a `<script>` tag.\n* `web-streams-polyfill/es6`: a polyfill targeting ES2015+ environments.\n  Recommended for use in web apps supporting modern browsers through a `<script>` tag.\n* `web-streams-polyfill/es2018`: a polyfill targeting ES2018+ environments.\n  Required for [`ReadableStream` async iterable support][rs-asynciterator].\n* `web-streams-polyfill/ponyfill`: a [ponyfill] that provides\n  the stream implementations without replacing any globals.\n  Recommended for use in legacy Node applications, or in web libraries supporting older browsers.\n* `web-streams-polyfill/ponyfill/es6`: a ponyfill targeting ES2015+ environments.\n  Recommended for use in Node 6+ applications, or in web libraries supporting modern browsers.\n* `web-streams-polyfill/ponyfill/es2018`: a ponyfill targeting ES2018+ environments.\n  Recommended for use in Node 10+ applications.\n\nEach variant also includes TypeScript type definitions, compatible with the DOM type definitions for streams included in TypeScript.\n\nUsage as a polyfill:\n```html\n<!-- option 1: hosted by unpkg CDN -->\n<script src=\"https://unpkg.com/web-streams-polyfill/dist/polyfill.min.js\"></script>\n<!-- option 2: self hosted -->\n<script src=\"/path/to/web-streams-polyfill/dist/polyfill.min.js\"></script>\n<script>\nvar readable = new ReadableStream();\n</script>\n```\nUsage as a Node module:\n```js\nvar streams = require(\"web-streams-polyfill/ponyfill\");\nvar readable = new streams.ReadableStream();\n```\nUsage as a ES2015 module:\n```js\nimport { ReadableStream } from \"web-streams-polyfill/ponyfill\";\nconst readable = new ReadableStream();\n```\n\n### Compatibility\n\nThe `polyfill` and `ponyfill` variants work in any ES5-compatible environment that has a global `Promise`.\nIf you need to support older browsers or Node versions that do not have a native `Promise` implementation\n(check the [support table][promise-support]), you must first include a `Promise` polyfill\n(e.g. [promise-polyfill][promise-polyfill]).\n\nThe `polyfill/es6` and `ponyfill/es6` variants work in any ES2015-compatible environment.\n\nThe `polyfill/es2018` and `ponyfill/es2018` variants work in any ES2018-compatible environment.\n\n### Compliance\n\nThe polyfill implements [version `2c8f35e` (21 Feb 2019)](https://streams.spec.whatwg.org/commit-snapshots/2c8f35ed23451ffc9b32ec37b56def4a5349abb1/) of the streams specification.\n\nThe type definitions are compatible with the built-in stream types of TypeScript 3.3.\n\n### Contributors\n\nThanks to these people for their work on [the original polyfill][creatorrr-polyfill]:\n\n - Diwank Singh Tomer ([creatorrr](https://github.com/creatorrr))\n - Anders Riutta ([ariutta](https://github.com/ariutta))\n\n[spec]: https://streams.spec.whatwg.org\n[ref-impl]: https://github.com/whatwg/streams\n[ponyfill]: https://github.com/sindresorhus/ponyfill\n[rs-asynciterator]: https://streams.spec.whatwg.org/#rs-asynciterator\n[promise-support]: https://kangax.github.io/compat-table/es6/#test-Promise\n[promise-polyfill]: https://www.npmjs.com/package/promise-polyfill\n[creatorrr-polyfill]: https://github.com/creatorrr/web-streams-polyfill\n","readmeFilename":"README.md","gitHead":"8bf71918f87174ebe2a9ca7546f8afc83482efda","_id":"web-streams-polyfill@2.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.8.0","dist":{"integrity":"sha512-CZrboLwoXbJmdUokO7TN1Re4K8a+PcHDbsewQTVWQRUUZI30OOUpECeW3I3GidmalHkTdWsi4w3ftj6bK8Nwog==","shasum":"a7a58b042fdcd93c55c69c6524231e08b577ed02","tarball":"http://registry-npm.ywwl.com/web-streams-polyfill/download/web-streams-polyfill-2.0.0.tgz","fileCount":40,"unpackedSize":2858406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchR3LCRA9TVsSAnZWagAABlgP+QEPcZKtlUHlVx6Rs0eQ\njuU9h02nwZpBYHUjHTHNdz2zBqCWsWuoHXkSGJVps+XUAjfiqOKMs+iC7p5v\nIt9WDaf9mwC/ii9eSMmfBJ/5c5sv1iZNmHTxQ9A7DcHHr607ipHl/zyNgRr5\nmn09dWBSoVqzHgUIVMni/mLO34GN/IF3+YgdeNAxM0iMjbhzQYa14VUon6Vm\nScL1me/CNJsHuAKOm0+Tm3beAtQ9VztywDUQtg3xuubmxSVMoMaFk7ls+Cc6\nuSq6ZbyiGdADQVqM3X34auHv+49/PTCq2YxIPhGrMOVNQrPJbG3onTtQ0ETT\n7lmjuI69tWcYJYUbwQOqNFBdBt/eaU9UAcj/LGzknf2yJXhseQTo/P912AOi\nAZFZv26h/W2LntSolaROWN2NJDuR2snCxy70WmeT1lpXi/3xCOr+nDObI3aW\ng+3RJdIId7wmpx9G6+FSimfdCZPxllceYE7iB9Q93v9oQpr3v6O8zbCj2Wwr\nBHDQ/EyjIiqW/UxtLz7Ezjqr9tjRRPIRlj8NIZknNHsp6uDCLyp2Otn1n3xU\npgJmaAIKWCfpOkQSlQyRwm/f0GD/+hz70jqV3eCam92CTpob8xIHrDZrKyQ4\n+ZUzuVeYeFpVC9fBDyjhHOfKQUHUkRvdfn4S+zCbUEznG9G9iK6qoKVcoKKS\nqTIn\r\n=bnus\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIApcvb3by9o+/Mdb3eRPC32slaeQZaMo5j0xhUyqpGhnAiBCmpU1KuDwh2U8hsB/326I4FpKeUl7kWNYK9k+nwAZEw=="}],"size":500558,"noattachment":false,"key":"/web-streams-polyfill/-/web-streams-polyfill-2.0.0.tgz"},"maintainers":[{"name":"diwank","email":"diwank.singh@gmail.com"},{"name":"pipes","email":"diwank.singh+pipes@gmail.com"}],"_npmUser":{"name":"mattiasbuelens","email":"mattias.buelens@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-streams-polyfill_2.0.0_1552227786738_0.8309113432612656"},"_hasShrinkwrap":false,"publish_time":1552227786906,"_cnpm_publish_time":1552227786906,"dist-tags":{"latest":"4.5.1","next":"4.0.0-beta.3"}}