{"name":"it-pushable","version":"3.2.4","description":"An iterable that you can push values into","author":{"name":"Alan Shaw"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/alanshaw/it-pushable#readme","repository":{"type":"git","url":"git+https://github.com/alanshaw/it-pushable.git"},"bugs":{"url":"https://github.com/alanshaw/it-pushable/issues"},"publishConfig":{"access":"public","provenance":true},"keywords":["iterable","iterator","push","pushable"],"type":"module","types":"./dist/src/index.d.ts","exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js","module-sync":"./dist/src/index.js"}},"release":{"branches":["master"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"breaking":true,"release":"major"},{"revert":true,"release":"patch"},{"type":"feat","release":"minor"},{"type":"fix","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","release":"patch"},{"type":"deps","release":"patch"},{"scope":"no-release","release":false}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"chore","section":"Trivial Changes"},{"type":"docs","section":"Documentation"},{"type":"deps","section":"Dependencies"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github",["@semantic-release/git",{"assets":["CHANGELOG.md","package.json"]}]]},"scripts":{"clean":"aegir clean","lint":"aegir lint","dep-check":"aegir dep-check","build":"aegir build","test":"aegir test -f ./dist/test","test:chrome":"aegir test -t browser --cov","test:chrome-webworker":"aegir test -t webworker","test:firefox":"aegir test -t browser -- --browser firefox","test:firefox-webworker":"aegir test -t webworker -- --browser firefox","test:node":"aegir test -t node --cov","test:electron-main":"aegir test -t electron-main","release":"aegir release","docs":"aegir docs"},"dependencies":{"p-defer":"^4.0.0"},"devDependencies":{"@types/fast-fifo":"^1.0.0","aegir":"^48.0.1","it-all":"^3.0.1","it-pipe":"^3.0.1","uint8arraylist":"^2.0.0"},"gitHead":"a78b307db5d6650893dc02215eefc4c1f46e11ae","_id":"it-pushable@3.2.4","_nodeVersion":"24.14.1","_npmVersion":"11.14.0","dist":{"integrity":"sha512-WSD7Ss4oCRfDZJT4ldLWr0Bom/muY90xxoJ5PQnU3uSKf0kxCOeehqZtiJX1ARqn+ymXGh1bxpDW9bDNHp2ivQ==","shasum":"f69c7fc0fa8fa6987c6f31cd1916d0c6d2db5297","tarball":"http://registry-npm.ywwl.com/it-pushable/download/it-pushable-3.2.4.tgz","fileCount":15,"unpackedSize":67874,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/it-pushable@3.2.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGk0Yh+tiLXPd1u4BbiMzLtYUJJTGMKSuHTB4F4XUOJLAiEAoaLqAE5weN7edfrr8s+OTRwRbp5aDZZZAR66E/duOAo="}],"size":15688,"noattachment":false,"key":"/it-pushable/-/it-pushable-3.2.4.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5cbaa393-1633-4504-997f-e6c2e05c2fee"}},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":"alan138@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/it-pushable_3.2.4_1778228762173_0.28288818107447034"},"_hasShrinkwrap":false,"readme":"# it-pushable <!-- omit in toc -->\n\n[![codecov](https://img.shields.io/codecov/c/github/alanshaw/it-pushable.svg?style=flat-square)](https://codecov.io/gh/alanshaw/it-pushable)\n[![CI](https://img.shields.io/github/actions/workflow/status/alanshaw/it-pushable/js-test-and-release.yml?branch=master\\&style=flat-square)](https://github.com/alanshaw/it-pushable/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)\n\n> An iterable that you can push values into\n\n# About\n\n<!--\n\n!IMPORTANT!\n\nEverything in this README between \"# About\" and \"# Install\" is automatically\ngenerated and will be overwritten the next time the doc generator is run.\n\nTo make changes to this section, please update the @packageDocumentation section\nof src/index.js or src/index.ts\n\nTo experiment with formatting, please run \"npm run docs\" from the root of this\nrepo and examine the changes made.\n\n-->\n\nAn iterable that you can push values into.\n\n## Example\n\n```js\nimport { pushable } from 'it-pushable'\n\nconst source = pushable()\n\nsetTimeout(() => source.push('hello'), 100)\nsetTimeout(() => source.push('world'), 200)\nsetTimeout(() => source.end(), 300)\n\nconst start = Date.now()\n\nfor await (const value of source) {\n  console.log(`got \"${value}\" after ${Date.now() - start}ms`)\n}\nconsole.log(`done after ${Date.now() - start}ms`)\n\n// Output:\n// got \"hello\" after 105ms\n// got \"world\" after 207ms\n// done after 309ms\n```\n\n## Example\n\n```js\nimport { pushableV } from 'it-pushable'\nimport all from 'it-all'\n\nconst source = pushableV()\n\nsource.push(1)\nsource.push(2)\nsource.push(3)\nsource.end()\n\nconsole.info(await all(source))\n\n// Output:\n// [ [1, 2, 3] ]\n```\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n  - [Browser `<script>` tag](#browser-script-tag)\n- [Usage](#usage)\n- [Related](#related)\n- [API Docs](#api-docs)\n- [License](#license)\n- [Contribution](#contribution)\n\n## Install\n\n```console\n$ npm i it-pushable\n```\n\n### Browser `<script>` tag\n\nLoading this module through a script tag will make it's exports available as `ItPushable` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/it-pushable/dist/index.min.js\"></script>\n```\n\n## Usage\n\n```js\nimport { pushable } from 'it-pushable'\n\nconst source = pushable()\n\nsetTimeout(() => source.push('hello'), 100)\nsetTimeout(() => source.push('world'), 200)\nsetTimeout(() => source.end(), 300)\n\nconst start = Date.now()\n\nfor await (const value of source) {\n  console.log(`got \"${value}\" after ${Date.now() - start}ms`)\n}\nconsole.log(`done after ${Date.now() - start}ms`)\n\n/*\nOutput:\ngot \"hello\" after 105ms\ngot \"world\" after 207ms\ndone after 309ms\n*/\n```\n\n```js\nimport { pushableV } from 'it-pushable'\nimport all from 'it-all'\n\nconst source = pushableV()\n\nsource.push(1)\nsource.push(2)\nsource.push(3)\nsource.end()\n\nconsole.info(await all(source))\n/*\nOutput:\n[ [1, 2, 3] ]\n*/\n```\n\n## Related\n\n- [`it-pipe`](https://www.npmjs.com/package/it-pipe) Utility to \"pipe\" async iterables together\n\n## API Docs\n\n- <https://alanshaw.github.io/it-pushable>\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","publish_time":1778228762323,"_cnpm_publish_time":1778228762323,"dist-tags":{"latest":"3.2.4"}}