{"_id":"@swimburger/isomorphic-streams","_rev":"4-a29f0e2a93f16a92d6a1f9dd101a756f","name":"@swimburger/isomorphic-streams","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.4":{"name":"@swimburger/isomorphic-streams","version":"1.0.4","description":"Isomorphic WHATWG Streams API package for browser and Node.js. Forked from https://github.com/ksm2/isomorphic-streams","main":"./index.node.cjs","module":"./index.module.mjs","browser":"./index.browser.js","types":"./index.d.ts","exports":{"types":"./index.d.ts","node":{"import":"./index.node.mjs","require":"./index.node.cjs"},"default":"./index.browser.js"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Swimburger/isomorphic-streams.git"},"author":{"name":"Niels Swimberghe"},"bugs":{"url":"https://github.com/Swimburger/isomorphic-streams/issues"},"homepage":"https://github.com/Swimburger/isomorphic-streams","publishConfig":{"access":"public","tag":"latest"},"keywords":["streams","web-streams","whatwg"],"type":"module","engines":{"node":">= 16.5.0"},"scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js --no-cache","prettier":"prettier --check *.js *.ts README.md CODE_OF_CONDUCT.md","prettier:fix":"prettier --write *.js *.ts README.md CODE_OF_CONDUCT.md"},"devDependencies":{"@types/jest":"^29.5.6","jest":"^29.7.0","prettier":"^3.0.3","ts-jest":"^29.1.1","typescript":"^5.2.2"},"gitHead":"9a09a488cfc8f4af36eb99bb32f4e821b05f8d30","_id":"@swimburger/isomorphic-streams@1.0.4","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-e+ML5+g9GB3dBYCK07fNncfHJkQs1s7J7HXMFyzviKhgZiOGm1G5ixukt8RXBZfW8JVBFXYzj2NeaZ0NVaxuBw==","shasum":"7daebc560af1e0bfc0c557ab5e7ba8093379d12e","tarball":"https://registry.npmjs.org/@swimburger/isomorphic-streams/-/isomorphic-streams-1.0.4.tgz","fileCount":7,"unpackedSize":11832,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGOpulblH/CUmN4c4pApeUlSKJtLaxlEh20lVBICs6avAiAsbA9yxaOKH478OVXUcDQdnhHWJkMw7xKzpTYMicTkPQ=="}]},"_npmUser":{"name":"swimburger","email":"nielsswimberghe@gmail.com"},"directories":{},"maintainers":[{"name":"swimburger","email":"nielsswimberghe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-streams_1.0.4_1698362618832_0.033857427278435326"},"_hasShrinkwrap":false},"1.0.5":{"name":"@swimburger/isomorphic-streams","version":"1.0.5","description":"Isomorphic WHATWG Streams API package for browser and Node.js. Forked from https://github.com/ksm2/isomorphic-streams","main":"./index.node.cjs","module":"./index.module.mjs","browser":"./index.browser.js","types":"./index.d.ts","exports":{"types":"./index.d.ts","node":{"import":"./index.node.mjs","require":"./index.node.cjs"},"default":"./index.browser.js"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Swimburger/isomorphic-streams.git"},"author":{"name":"Niels Swimberghe"},"bugs":{"url":"https://github.com/Swimburger/isomorphic-streams/issues"},"homepage":"https://github.com/Swimburger/isomorphic-streams","publishConfig":{"access":"public","tag":"latest"},"keywords":["streams","web-streams","whatwg"],"type":"module","engines":{"node":">= 16.5.0"},"scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js --no-cache","prettier":"prettier --check *.js *.ts README.md CODE_OF_CONDUCT.md","prettier:fix":"prettier --write *.js *.ts README.md CODE_OF_CONDUCT.md"},"devDependencies":{"@types/jest":"^29.5.6","jest":"^29.7.0","prettier":"^3.0.3","ts-jest":"^29.1.1","typescript":"^5.2.2"},"gitHead":"bc02c1038d17b0390c42bc3cc87b64c03a4342ee","_id":"@swimburger/isomorphic-streams@1.0.5","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-YE0dafqPXZxGS8dhapHRBSsYZ2bJ51P8n4vDCDcw4TrJT+HuR+F8h//c/mfVAswXxlx5Mz/mGMc4SUgYhI3Xrw==","shasum":"674efd8b0479fd6e9c99ccfb5e3f8664274243e7","tarball":"https://registry.npmjs.org/@swimburger/isomorphic-streams/-/isomorphic-streams-1.0.5.tgz","fileCount":7,"unpackedSize":8143,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5syKMtC9HPJa3fnSBr3+gFmPNkMB/ytdtVg0X7s+0+wIgFtFXjJJp6NrxUVKkdo/3ILfYVRzaZ0ftJekFvyqdm9w="}]},"_npmUser":{"name":"swimburger","email":"nielsswimberghe@gmail.com"},"directories":{},"maintainers":[{"name":"swimburger","email":"nielsswimberghe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-streams_1.0.5_1698368582018_0.4652471591703462"},"_hasShrinkwrap":false},"1.1.1":{"name":"@swimburger/isomorphic-streams","version":"1.1.1","description":"Isomorphic WHATWG Streams API package for browser, Node.js, and other runtimes. Forked from https://github.com/ksm2/isomorphic-streams","type":"commonjs","main":"./dist/node.cjs","types":"./dist/node.d.ts","module":"./dist/default.mjs","browser":"./dist/default.mjs","exports":{"node":{"import":{"types":"./dist/node.d.mts","default":"./dist/node.mjs"},"require":{"types":"./dist/node.d.cts","default":"./dist/node.cjs"}},"browser":{"types":"./dist/default.d.mts","default":"./dist/default.mjs"},"import":{"types":"./dist/default.d.mts","default":"./dist/default.mjs"},"require":{"types":"./dist/default.d.cts","default":"./dist/default.cjs"},"default":{"types":"./dist/default.d.mts","default":"./dist/default.mjs"}},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Swimburger/isomorphic-streams.git"},"author":{"name":"Niels Swimberghe"},"bugs":{"url":"https://github.com/Swimburger/isomorphic-streams/issues"},"homepage":"https://github.com/Swimburger/isomorphic-streams","publishConfig":{"access":"public","tag":"latest"},"keywords":["streams","web-streams","whatwg"],"engines":{"node":">= 16.5.0"},"scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js --no-cache","lint":"publint","format":"prettier --write **/*","build":"unbuild"},"devDependencies":{"@types/jest":"^29.5.6","jest":"^29.7.0","prettier":"^3.0.3","publint":"^0.2.5","ts-jest":"^29.1.1","typescript":"^5.3.2","unbuild":"^2.0.0"},"_id":"@swimburger/isomorphic-streams@1.1.1","gitHead":"1658782d9797c7482db7b50bac0bc5f45ec170c9","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-E4ZHqsSA5A/xRRmi/rgnR84qPhiqHAjprBmwRtwiPC63mtMOUk/eYClRV69MuZWt6dsvgijHCdfdDCCrfy39nQ==","shasum":"27ad84b20be631012b0a6babbceae706f74cdd0b","tarball":"https://registry.npmjs.org/@swimburger/isomorphic-streams/-/isomorphic-streams-1.1.1.tgz","fileCount":15,"unpackedSize":22537,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD45DH1T1ib5HHCwyqEY2QUeg5r3Mhb0Ki8XN+Z+61JJQIgYkDNyudqxaC0YNmFEIuMO/D2xkbWtQrfLSsnBt3jkAk="}]},"_npmUser":{"name":"swimburger","email":"nielsswimberghe@gmail.com"},"directories":{},"maintainers":[{"name":"swimburger","email":"nielsswimberghe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-streams_1.1.1_1701238402368_0.09397879207608839"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-26T23:23:38.759Z","1.0.4":"2023-10-26T23:23:38.988Z","modified":"2023-11-29T06:13:22.761Z","1.0.5":"2023-10-27T01:03:02.295Z","1.1.0":"2023-11-29T06:05:58.660Z","1.1.1":"2023-11-29T06:13:22.565Z"},"maintainers":[{"name":"swimburger","email":"nielsswimberghe@gmail.com"}],"description":"Isomorphic WHATWG Streams API package for browser, Node.js, and other runtimes. Forked from https://github.com/ksm2/isomorphic-streams","homepage":"https://github.com/Swimburger/isomorphic-streams","keywords":["streams","web-streams","whatwg"],"repository":{"type":"git","url":"git+https://github.com/Swimburger/isomorphic-streams.git"},"author":{"name":"Niels Swimberghe"},"bugs":{"url":"https://github.com/Swimburger/isomorphic-streams/issues"},"license":"MIT","readme":"This is a fork of https://github.com/ksm2/isomorphic-streams\n\n---\n\n# isomorphic-streams\n\n[![Build](https://github.com/Swimburger/isomorphic-streams/actions/workflows/ci.yml/badge.svg)](https://github.com/Swimburger/isomorphic-streams/actions/workflows/node.js.yml)\n[![NPM version](https://img.shields.io/npm/v/%40swimburger/isomorphic-streams)](https://www.npmjs.com/package/@swimburger/isomorphic-streams)\n[![license](https://img.shields.io/github/license/Swimburger/isomorphic-streams)](https://raw.githubusercontent.com/Swimburger/isomorphic-streams/main/LICENSE)\n\n> Isomorphic [WHATWG Streams API] package for browser, Node.js, and other runtimes.\n\nThis package has\n\n- **zero dependencies**\n- provides **TypeScript typings**\n- supports `ReadableStream`, `WritableStream` and `TransformStream`\n\n## Table of Contents\n\n- [isomorphic-streams](#isomorphic-streams)\n  - [Table of Contents](#table-of-contents)\n  - [Install](#install)\n  - [Usage](#usage)\n  - [Contributing](#contributing)\n  - [License](#license)\n\n## Install\n\nUse either\n\n    yarn add isomorphic-streams\n\nor\n\n    npm install isomorphic-streams\n\n## Usage\n\n**In the browser:** Instead of using the global `ReadbaleStream` or `window.ReadableStream`, import from this package instead.\n\n**In Node.js:** Instead of importing `node:stream/web` or requiring `stream/web`, import from this package instead.\n\nThe following code will work in both Node.js and the browser:\n\n```js\nimport { ReadableStream } from \"isomorphic-streams\";\n\nconst SECOND = 1000;\n\nconst stream = new ReadableStream({\n  start(controller) {\n    setInterval(() => {\n      controller.enqueue(Date.now());\n    }, SECOND);\n  },\n});\n\nfor await (const value of stream) {\n  console.log(value);\n}\n```\n\n[More examples][examples]\n\n## Contributing\n\nThis project is open to feedback and contributions, please open an issue.\n\n`isomorphic-streams` follows the [Contributor Covenant] Code of Conduct.\n\n## License\n\nMIT © 2023 Niels Swimberghe, see [LICENSE].\n\n[whatwg streams api]: https://streams.spec.whatwg.org/\n[license]: https://github.com/Swimburger/isomorphic-streams/blob/main/LICENSE\n[contributor covenant]: https://github.com/Swimburger/isomorphic-streams/blob/main/CODE_OF_CONDUCT.md\n[examples]: https://github.com/Swimburger/isomorphic-streams/tree/main/examples\n","readmeFilename":"README.md"}