{"_id":"abortable-iterator","_rev":"4577472","name":"abortable-iterator","description":"Make any iterator or iterable abortable via an AbortSignal","dist-tags":{"latest":"5.1.0"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"time":{"modified":"2026-04-10T15:47:38.000Z","created":"2018-10-31T10:33:18.942Z","5.1.0":"2024-08-07T12:23:06.896Z","5.0.1":"2023-04-19T09:32:03.752Z","5.0.0":"2023-04-18T22:03:32.673Z","4.0.3":"2023-04-18T20:57:36.489Z","4.0.2":"2022-01-14T08:51:37.949Z","3.0.2":"2022-01-14T08:22:09.915Z","4.0.1":"2022-01-13T10:14:23.860Z","4.0.0":"2022-01-12T20:16:29.588Z","3.0.1":"2021-12-29T08:12:06.493Z","3.0.0":"2019-10-28T12:01:05.152Z","2.1.0":"2019-08-16T11:47:20.310Z","2.0.0":"2019-04-18T10:44:52.083Z","1.0.4":"2019-04-17T13:59:19.576Z","1.0.3":"2018-11-01T11:13:33.533Z","1.0.2":"2018-11-01T09:32:57.836Z","1.0.1":"2018-10-31T10:45:23.088Z","1.0.0":"2018-10-31T10:33:18.942Z"},"users":{},"author":{"name":"Alan Shaw"},"repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"versions":{"5.1.0":{"name":"abortable-iterator","version":"5.1.0","description":"Make any iterator or iterable abortable via an AbortSignal","author":{"name":"Alan Shaw"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/alanshaw/abortable-iterator#readme","repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"publishConfig":{"access":"public","provenance":true},"keywords":["AbortController","AbortSignal","abort","abortable","async","cancel","iterator","signal","stop"],"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"},"./duplex":{"types":"./dist/src/duplex.d.ts","import":"./dist/src/duplex.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"project":true,"sourceType":"module"}},"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"]},"scripts":{"clean":"aegir clean","lint":"aegir lint","dep-check":"aegir dep-check","build":"aegir build","test":"aegir test","test:chrome":"npm run test -- -t browser --cov","test:chrome-webworker":"npm run test -- -t webworker","test:firefox":"npm run test -- -t browser -- --browser firefox","test:firefox-webworker":"npm run test -- -t webworker -- --browser firefox","test:node":"npm run test -- -t node --cov","test:electron-main":"npm run test -- -t electron-main","release":"aegir release","docs":"aegir docs"},"dependencies":{"get-iterator":"^2.0.0","it-stream-types":"^2.0.1"},"devDependencies":{"aegir":"^44.1.0","delay":"^6.0.0","it-drain":"^3.0.1","it-pipe":"^3.0.1"},"_id":"abortable-iterator@5.1.0","gitHead":"ad5f6c5079ef2a48f0750ac50f91acf5743b77df","_nodeVersion":"20.16.0","_npmVersion":"10.8.2","dist":{"shasum":"2bdd7e3a1b3fe2e6893f1b60502b0e6a3028a792","size":8588,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-5.1.0.tgz"},"_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_5.1.0_1723033386748_0.8296566697604926"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-07T12:23:06.896Z","publish_time":1723033386896,"_source_registry_name":"default","_cnpm_publish_time":1723033386896},"5.0.1":{"name":"abortable-iterator","version":"5.0.1","description":"Make any iterator or iterable abortable via an AbortSignal","author":{"name":"Alan Shaw"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/alanshaw/abortable-iterator#readme","repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"keywords":["AbortController","AbortSignal","abort","abortable","async","cancel","iterator","signal","stop"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"},"./duplex":{"types":"./dist/src/duplex.d.ts","import":"./dist/src/duplex.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"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"]},"scripts":{"clean":"aegir clean","lint":"aegir lint","dep-check":"aegir dep-check dist/src/**/*.js dist/test/**/*.js","build":"tsc","pretest":"npm run build","test":"aegir test -f ./dist/test","test:chrome":"npm run test -- -t browser --cov","test:chrome-webworker":"npm run test -- -t webworker","test:firefox":"npm run test -- -t browser -- --browser firefox","test:firefox-webworker":"npm run test -- -t webworker -- --browser firefox","test:node":"npm run test -- -t node --cov","test:electron-main":"npm run test -- -t electron-main","release":"semantic-release","docs":"aegir docs"},"dependencies":{"get-iterator":"^2.0.0","it-stream-types":"^2.0.1"},"devDependencies":{"aegir":"^38.1.7","delay":"^5.0.0","it-drain":"^3.0.1","it-pipe":"^3.0.1"},"gitHead":"68c554cb40bd160216abb7200b54015aad0bd9a8","_id":"abortable-iterator@5.0.1","_nodeVersion":"18.15.0","_npmVersion":"8.19.4","dist":{"shasum":"5d93eba6fa8287a973a9ea090c64ca08b3777780","size":7315,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-5.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-5.0.1.tgz"},"_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_5.0.1_1681896723571_0.7583200169149653"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-19T09:32:03.752Z","publish_time":1681896723752,"_cnpm_publish_time":1681896723752},"5.0.0":{"name":"abortable-iterator","version":"5.0.0","description":"Make any iterator or iterable abortable via an AbortSignal","author":{"name":"Alan Shaw"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/alanshaw/abortable-iterator#readme","repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"keywords":["AbortController","AbortSignal","abort","abortable","async","cancel","iterator","signal","stop"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"},"./duplex":{"types":"./dist/src/duplex.d.ts","import":"./dist/src/duplex.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"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"]},"scripts":{"lint":"aegir lint","dep-check":"aegir dep-check dist/src/**/*.js dist/test/**/*.js","build":"tsc","pretest":"npm run build","test":"aegir test -f ./dist/test","test:chrome":"npm run test -- -t browser --cov","test:chrome-webworker":"npm run test -- -t webworker","test:firefox":"npm run test -- -t browser -- --browser firefox","test:firefox-webworker":"npm run test -- -t webworker -- --browser firefox","test:node":"npm run test -- -t node --cov","test:electron-main":"npm run test -- -t electron-main","release":"semantic-release","docs":"aegir docs"},"dependencies":{"get-iterator":"^2.0.0","it-stream-types":"^2.0.1"},"devDependencies":{"aegir":"^38.1.7","delay":"^5.0.0","it-drain":"^3.0.1","it-pipe":"^3.0.1"},"gitHead":"e1b5942d10de9bae5e5c925085487c1ce575776b","_id":"abortable-iterator@5.0.0","_nodeVersion":"18.15.0","_npmVersion":"8.19.4","dist":{"shasum":"d494f6bc62ab827ee8628c1978b293311d5d0358","size":7302,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-5.0.0.tgz"},"_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_5.0.0_1681855412473_0.8005311403444904"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-18T22:03:32.673Z","publish_time":1681855412673,"_cnpm_publish_time":1681855412673},"4.0.3":{"name":"abortable-iterator","version":"4.0.3","description":"Make any iterator or iterable abortable via an AbortSignal","type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","*/index","dist/*","dist/*/index","dist/src/*","dist/src/*/index"]}},"exports":{".":{"import":"./dist/src/index.js"},"./duplex":{"import":"./dist/src/duplex.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"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":"chore","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","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":"Trivial Changes"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"]},"scripts":{"lint":"aegir lint","dep-check":"aegir dep-check dist/src/**/*.js dist/test/**/*.js","build":"tsc","pretest":"npm run build","test":"aegir test -f ./dist/test","test:chrome":"npm run test -- -t browser --cov","test:chrome-webworker":"npm run test -- -t webworker","test:firefox":"npm run test -- -t browser -- --browser firefox","test:firefox-webworker":"npm run test -- -t webworker -- --browser firefox","test:node":"npm run test -- -t node --cov","test:electron-main":"npm run test -- -t electron-main","release":"semantic-release"},"keywords":["async","iterator","abort","abortable","cancel","stop","AbortController","AbortSignal","signal"],"author":{"name":"Alan Shaw"},"license":"MIT","devDependencies":{"aegir":"^36.1.3","delay":"^5.0.0","it-drain":"^2.0.1","it-pipe":"^2.0.2"},"repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"homepage":"https://github.com/alanshaw/abortable-iterator#readme","dependencies":{"get-iterator":"^2.0.0","it-stream-types":"^1.0.3"},"gitHead":"2a3f2de97f933a3ad86c401de6d178cceb6d24e0","_id":"abortable-iterator@4.0.3","_nodeVersion":"18.15.0","_npmVersion":"7.24.2","dist":{"shasum":"432570d8256dbad2cef4f129312b651c5ffcdd0f","size":6645,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-4.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-4.0.3.tgz"},"_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_4.0.3_1681851456324_0.7911812324961816"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-18T20:57:36.489Z","publish_time":1681851456489,"_cnpm_publish_time":1681851456489},"4.0.2":{"name":"abortable-iterator","version":"4.0.2","description":"Make any iterator or iterable abortable via an AbortSignal","type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","*/index","dist/*","dist/*/index","dist/src/*","dist/src/*/index"]}},"exports":{".":{"import":"./dist/src/index.js"},"./duplex":{"import":"./dist/src/duplex.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"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":"chore","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","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":"Trivial Changes"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"]},"scripts":{"lint":"aegir lint","dep-check":"aegir dep-check dist/src/**/*.js dist/test/**/*.js","build":"tsc","pretest":"npm run build","test":"aegir test -f ./dist/test","test:chrome":"npm run test -- -t browser --cov","test:chrome-webworker":"npm run test -- -t webworker","test:firefox":"npm run test -- -t browser -- --browser firefox","test:firefox-webworker":"npm run test -- -t webworker -- --browser firefox","test:node":"npm run test -- -t node --cov","test:electron-main":"npm run test -- -t electron-main","release":"semantic-release"},"keywords":["async","iterator","abort","abortable","cancel","stop","AbortController","AbortSignal","signal"],"author":{"name":"Alan Shaw"},"license":"MIT","devDependencies":{"aegir":"^36.1.3","delay":"^5.0.0","it-drain":"^1.0.5","it-pipe":"^2.0.2"},"repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"homepage":"https://github.com/alanshaw/abortable-iterator#readme","dependencies":{"get-iterator":"^2.0.0","it-stream-types":"^1.0.3"},"gitHead":"0dab4cc68dcdddba1416b3d03e638ce8942d570c","_id":"abortable-iterator@4.0.2","_nodeVersion":"16.13.2","_npmVersion":"7.24.2","dist":{"shasum":"aea6a4a6a696badcbad1c9fff5a9ca85f0f286a4","size":6647,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-4.0.2.tgz"},"_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_4.0.2_1642150297795_0.9234807265434497"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-14T08:51:44.175Z","publish_time":1642150297949,"_cnpm_publish_time":1642150297949},"3.0.2":{"name":"abortable-iterator","version":"3.0.2","description":"Make any iterator or iterable abortable via an AbortSignal","main":"index.js","scripts":{"test":"npm run lint && nyc --reporter=lcov --reporter=text ava --verbose","lint":"standard"},"keywords":["async","iterator","abort","abortable","cancel","stop","AbortController","AbortSignal","signal"],"author":{"name":"Alan Shaw"},"license":"MIT","devDependencies":{"abort-controller":"^3.0.0","ava":"^3.15.0","nyc":"^15.1.0","standard":"^16.0.4"},"dependencies":{"get-iterator":"^1.0.2"},"repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"homepage":"https://github.com/alanshaw/abortable-iterator#readme","types":"./index.d.ts","gitHead":"e8727f8c72ce48716f197bff28122cfd7f8f2fc0","_id":"abortable-iterator@3.0.2","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"shasum":"6f5af0f36e86db4607fc95251bffe2dee261d6a2","size":4875,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-3.0.2.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_3.0.2_1642148529245_0.22214070058425772"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-14T08:22:32.264Z","publish_time":1642148529915,"_cnpm_publish_time":1642148529915},"4.0.1":{"name":"abortable-iterator","version":"4.0.1","description":"Make any iterator or iterable abortable via an AbortSignal","type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","*/index","dist/*","dist/*/index","dist/src/*","dist/src/*/index"]}},"exports":{".":{"import":"./dist/src/index.js"},"./duplex":{"import":"./dist/src/duplex.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"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":"chore","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","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":"Trivial Changes"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"]},"scripts":{"lint":"aegir lint","dep-check":"aegir dep-check dist/src/**/*.js dist/test/**/*.js","build":"tsc","pretest":"npm run build","test":"aegir test -f ./dist/test","test:chrome":"npm run test -- -t browser --cov","test:chrome-webworker":"npm run test -- -t webworker","test:firefox":"npm run test -- -t browser -- --browser firefox","test:firefox-webworker":"npm run test -- -t webworker -- --browser firefox","test:node":"npm run test -- -t node --cov","test:electron-main":"npm run test -- -t electron-main","release":"semantic-release"},"keywords":["async","iterator","abort","abortable","cancel","stop","AbortController","AbortSignal","signal"],"author":{"name":"Alan Shaw"},"license":"MIT","devDependencies":{"aegir":"^36.1.3","delay":"^5.0.0","it-drain":"^1.0.5","it-pipe":"^2.0.2"},"repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"homepage":"https://github.com/alanshaw/abortable-iterator#readme","dependencies":{"get-iterator":"^2.0.0","it-stream-types":"^1.0.3"},"gitHead":"66af3c8c16292a472802f6f184b94c8501019673","_id":"abortable-iterator@4.0.1","_nodeVersion":"16.13.2","_npmVersion":"7.24.2","dist":{"shasum":"263516f9c59402ab374aac57a3b136e25d55189b","size":6648,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-4.0.1.tgz"},"_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_4.0.1_1642068863735_0.8288406366242702"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-13T10:14:30.911Z","publish_time":1642068863860,"_cnpm_publish_time":1642068863860},"4.0.0":{"name":"abortable-iterator","version":"4.0.0","description":"Make any iterator or iterable abortable via an AbortSignal","type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","*/index","dist/*","dist/*/index","dist/src/*","dist/src/*/index"]}},"exports":{".":{"import":"./dist/src/index.js"},"./duplex":{"import":"./dist/src/duplex.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"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":"chore","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","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":"Trivial Changes"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"]},"scripts":{"lint":"aegir lint","dep-check":"aegir dep-check dist/src/**/*.js dist/test/**/*.js","build":"tsc","pretest":"npm run build","test":"aegir test -f ./dist/test","test:chrome":"npm run test -- -t browser --cov","test:chrome-webworker":"npm run test -- -t webworker","test:firefox":"npm run test -- -t browser -- --browser firefox","test:firefox-webworker":"npm run test -- -t webworker -- --browser firefox","test:node":"npm run test -- -t node --cov","test:electron-main":"npm run test -- -t electron-main","release":"semantic-release"},"keywords":["async","iterator","abort","abortable","cancel","stop","AbortController","AbortSignal","signal"],"author":{"name":"Alan Shaw"},"license":"MIT","devDependencies":{"aegir":"^36.1.3","delay":"^5.0.0","it-drain":"^1.0.5","it-pipe":"^2.0.0"},"repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"homepage":"https://github.com/alanshaw/abortable-iterator#readme","dependencies":{"get-iterator":"^2.0.0","it-stream-types":"^1.0.3"},"gitHead":"f2bcb038e91e95c6087dfef2b271c2fcce655fb3","_id":"abortable-iterator@4.0.0","_nodeVersion":"16.13.1","_npmVersion":"7.24.2","dist":{"shasum":"463140f595865521a7c563fa0da5610e1fdece97","size":6646,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-4.0.0.tgz"},"_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_4.0.0_1642018589389_0.6889302327133606"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-12T20:16:43.218Z","publish_time":1642018589588,"_cnpm_publish_time":1642018589588},"3.0.1":{"name":"abortable-iterator","version":"3.0.1","description":"Make any iterator or iterable abortable via an AbortSignal","main":"index.js","scripts":{"test":"npm run lint && nyc --reporter=lcov --reporter=text ava --verbose","lint":"standard"},"keywords":["async","iterator","abort","abortable","cancel","stop","AbortController","AbortSignal","signal"],"author":{"name":"Alan Shaw"},"license":"MIT","devDependencies":{"abort-controller":"^3.0.0","ava":"^3.15.0","nyc":"^15.1.0","standard":"^16.0.4"},"dependencies":{"get-iterator":"^1.0.2"},"repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"homepage":"https://github.com/alanshaw/abortable-iterator#readme","types":"./index.d.ts","gitHead":"8fd144bc4c959b9b0ffb5cc50d9c776abe3ab145","_id":"abortable-iterator@3.0.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"shasum":"9f4f0fbec53b8d7de8d9dfe7aa53ae34f05db1de","size":4800,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-3.0.1.tgz"},"_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_3.0.1_1640765526286_0.005912906398367834"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-29T08:12:15.081Z","publish_time":1640765526493,"_cnpm_publish_time":1640765526493},"3.0.0":{"name":"abortable-iterator","version":"3.0.0","description":"Make any iterator or iterable abortable via an AbortSignal","main":"index.js","scripts":{"test":"npm run lint && nyc --reporter=lcov --reporter=text ava --verbose","lint":"standard"},"keywords":["async","iterator","abort","abortable","cancel","stop","AbortController","AbortSignal","signal"],"author":{"name":"Alan Shaw"},"license":"MIT","devDependencies":{"abort-controller":"^3.0.0","ava":"^2.4.0","nyc":"^14.1.1","standard":"^14.3.1"},"ava":{"babel":false,"compileEnhancements":false,"failWithoutAssertions":false},"dependencies":{"get-iterator":"^1.0.2"},"repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"homepage":"https://github.com/alanshaw/abortable-iterator#readme","gitHead":"d1f1762de7b07051954d5de4928cf2eb54890002","_id":"abortable-iterator@3.0.0","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"dist":{"shasum":"8ea796a237286b7fbe98d97e2505a15cdd81c0ac","size":4778,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-3.0.0.tgz"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_3.0.0_1572264064997_0.16676104816885728"},"_hasShrinkwrap":false,"publish_time":1572264065152,"_cnpm_publish_time":1572264065152,"_cnpmcore_publish_time":"2021-12-16T10:06:06.117Z"},"2.1.0":{"name":"abortable-iterator","version":"2.1.0","description":"Make any iterator or iterable abortable via an AbortSignal","main":"index.js","scripts":{"test":"standard && nyc --reporter=lcov --reporter=text ava --verbose"},"keywords":["async","iterator","abort","abortable","cancel","stop","AbortController","AbortSignal","signal"],"author":{"name":"Alan Shaw"},"license":"MIT","devDependencies":{"abort-controller":"^3.0.0","ava":"^1.4.1","babel-eslint":"^10.0.1","nyc":"^14.0.0","standard":"^12.0.1"},"ava":{"babel":false,"compileEnhancements":false,"failWithoutAssertions":false},"standard":{"parser":"babel-eslint"},"dependencies":{"get-iterator":"^1.0.2"},"repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"homepage":"https://github.com/alanshaw/abortable-iterator#readme","gitHead":"f81edb0dac081aeb10a5e19b4f3db82c25303af0","_id":"abortable-iterator@2.1.0","_nodeVersion":"12.7.0","_npmVersion":"6.10.0","_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"dist":{"shasum":"f1385d5465817de2bd33a52bc97f5ea106be1ff1","size":3664,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-2.1.0.tgz"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_2.1.0_1565956040137_0.2034249582833627"},"_hasShrinkwrap":false,"publish_time":1565956040310,"_cnpm_publish_time":1565956040310,"_cnpmcore_publish_time":"2021-12-16T10:06:06.319Z"},"2.0.0":{"name":"abortable-iterator","version":"2.0.0","description":"Make any iterator or iterable abortable via an AbortSignal","main":"index.js","scripts":{"test":"standard && nyc --reporter=lcov --reporter=text ava --verbose"},"keywords":["async","iterator","abort","abortable","cancel","stop","AbortController","AbortSignal","signal"],"author":{"name":"Alan Shaw"},"license":"MIT","devDependencies":{"abort-controller":"^3.0.0","ava":"^1.4.1","babel-eslint":"^10.0.1","nyc":"^14.0.0","standard":"^12.0.1"},"ava":{"babel":false,"compileEnhancements":false,"failWithoutAssertions":false},"standard":{"parser":"babel-eslint"},"dependencies":{"get-iterator":"^1.0.2"},"repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"homepage":"https://github.com/alanshaw/abortable-iterator#readme","gitHead":"68a97130142a708d069a123bd4a7c8e100cb6934","_id":"abortable-iterator@2.0.0","_nodeVersion":"11.14.0","_npmVersion":"6.7.0","_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"dist":{"shasum":"3aadcd88286b1b840f905a7b56b73b4a81af9357","size":3365,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-2.0.0.tgz"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_2.0.0_1555584291965_0.8781673832695547"},"_hasShrinkwrap":false,"publish_time":1555584292083,"_cnpm_publish_time":1555584292083,"_cnpmcore_publish_time":"2021-12-16T10:06:06.569Z"},"1.0.4":{"name":"abortable-iterator","version":"1.0.4","description":"Make any iterator or iterable abortable via an AbortSignal","main":"index.js","scripts":{"test":"standard && nyc --reporter=lcov --reporter=text ava --verbose"},"keywords":["async","iterator","abort","abortable","cancel","stop","AbortController","AbortSignal","signal"],"author":{"name":"Alan Shaw"},"license":"MIT","devDependencies":{"abort-controller":"^3.0.0","ava":"^1.4.1","babel-eslint":"^10.0.1","nyc":"^14.0.0","standard":"^12.0.1"},"ava":{"babel":false,"compileEnhancements":false,"failWithoutAssertions":false},"standard":{"parser":"babel-eslint"},"dependencies":{"get-iterator":"^1.0.2"},"repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"homepage":"https://github.com/alanshaw/abortable-iterator#readme","gitHead":"abfc1e3df10f55c59c866dde73bfd89911ba5d81","_id":"abortable-iterator@1.0.4","_nodeVersion":"11.14.0","_npmVersion":"6.7.0","_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"dist":{"shasum":"a256c263ef051c86361d7a3afb27498d3b240f15","size":3394,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-1.0.4.tgz"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_1.0.4_1555509559394_0.08014190535958554"},"_hasShrinkwrap":false,"publish_time":1555509559576,"_cnpm_publish_time":1555509559576,"_cnpmcore_publish_time":"2021-12-16T10:06:06.804Z"},"1.0.3":{"name":"abortable-iterator","version":"1.0.3","description":"Make any iterator or iterable abortable via an AbortSignal","main":"index.js","scripts":{"test":"standard && nyc --reporter=lcov --reporter=text ava --verbose"},"keywords":["async","iterator","abort","abortable","cancel","stop","AbortController","AbortSignal","signal"],"author":{"name":"Alan Shaw"},"license":"MIT","devDependencies":{"abort-controller":"^1.0.2","ava":"^1.0.0-rc.1","babel-eslint":"^10.0.1","nyc":"^13.1.0","standard":"^12.0.1"},"ava":{"babel":false,"compileEnhancements":false,"failWithoutAssertions":false},"standard":{"parser":"babel-eslint"},"dependencies":{"get-iterator":"^1.0.0"},"repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"homepage":"https://github.com/alanshaw/abortable-iterator#readme","gitHead":"ef1c2816f4674ea357ae3cda727ccf1dce626e12","_id":"abortable-iterator@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"11.0.0","_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"dist":{"shasum":"a38053cee4bd6d491f6c0f95513b07e2ea74ce8d","size":3229,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-1.0.3.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_1.0.3_1541070813371_0.5898500828042144"},"_hasShrinkwrap":false,"publish_time":1541070813533,"_cnpm_publish_time":1541070813533,"_cnpmcore_publish_time":"2021-12-16T10:06:07.084Z"},"1.0.2":{"name":"abortable-iterator","version":"1.0.2","description":"Make any iterator or iterable abortable via an AbortSignal","main":"index.js","scripts":{"test":"nyc --reporter=lcov --reporter=text ava --verbose"},"keywords":["async","iterator","abort","abortable","cancel","stop","AbortController","AbortSignal","signal"],"author":{"name":"Alan Shaw"},"license":"MIT","devDependencies":{"abort-controller":"^1.0.2","ava":"^1.0.0-rc.1","babel-eslint":"^10.0.1","nyc":"^13.1.0"},"ava":{"babel":false,"compileEnhancements":false,"failWithoutAssertions":false},"standard":{"parser":"babel-eslint"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/alanshaw/abortable-iterator.git"},"bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"homepage":"https://github.com/alanshaw/abortable-iterator#readme","gitHead":"d74c2fc9df2acdbfe7130a1927341082048a0643","_id":"abortable-iterator@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"11.0.0","_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"dist":{"shasum":"994d3728f68380ba09acfe9c073b9c701df1b5d5","size":3239,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-1.0.2.tgz"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_1.0.2_1541064777675_0.5560319405677181"},"_hasShrinkwrap":false,"publish_time":1541064777836,"_cnpm_publish_time":1541064777836,"_cnpmcore_publish_time":"2021-12-16T10:06:07.311Z"},"1.0.1":{"name":"abortable-iterator","version":"1.0.1","description":"Make any iterator or iterable abortable via an AbortSignal","main":"index.js","scripts":{"test":"nyc --reporter=lcov --reporter=text ava --verbose"},"keywords":["async","iterator","abort","abortable","cancel","stop","AbortController","AbortSignal","signal"],"author":{"name":"Alan Shaw"},"license":"MIT","devDependencies":{"abort-controller":"^1.0.2","ava":"^1.0.0-rc.1","babel-eslint":"^10.0.1","nyc":"^13.1.0"},"ava":{"babel":false,"compileEnhancements":false,"failWithoutAssertions":false},"standard":{"parser":"babel-eslint"},"gitHead":"8757b06f63eb23d6bdaf51ff0f09e5e62350ab6d","_id":"abortable-iterator@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"dist":{"shasum":"ba0a06b39b4413e3af3ca7ebd5674329328f5045","size":3155,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-1.0.1.tgz"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_1.0.1_1540982722989_0.1826091871947304"},"_hasShrinkwrap":false,"publish_time":1540982723088,"_cnpm_publish_time":1540982723088,"_cnpmcore_publish_time":"2021-12-16T10:06:07.553Z"},"1.0.0":{"name":"abortable-iterator","version":"1.0.0","description":"Make any iterator or iterable abortable via an AbortSignal","main":"index.js","scripts":{"test":"nyc --reporter=lcov --reporter=text ava --verbose"},"keywords":["async","iterator","abort","abortable","cancel","stop","AbortController","signal"],"author":{"name":"Alan Shaw"},"license":"MIT","devDependencies":{"abort-controller":"^1.0.2","ava":"^1.0.0-rc.1","babel-eslint":"^10.0.1","nyc":"^13.1.0"},"ava":{"babel":false,"compileEnhancements":false,"failWithoutAssertions":false},"standard":{"parser":"babel-eslint"},"gitHead":"ba606ef8830f84f3c33d5afb43e1f6e42d8f1a4b","_id":"abortable-iterator@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"dist":{"shasum":"cfdda90d2dbd7605a826b50ace489e7105978aa3","size":3134,"noattachment":false,"key":"/abortable-iterator/-/abortable-iterator-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/abortable-iterator/download/abortable-iterator-1.0.0.tgz"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/abortable-iterator_1.0.0_1540981998833_0.7964018426984374"},"_hasShrinkwrap":false,"publish_time":1540981998942,"_cnpm_publish_time":1540981998942,"_cnpmcore_publish_time":"2021-12-16T10:06:07.817Z"}},"readme":"# abortable-iterator\n\n[![codecov](https://img.shields.io/codecov/c/github/alanshaw/abortable-iterator.svg?style=flat-square)](https://codecov.io/gh/alanshaw/abortable-iterator)\n[![CI](https://img.shields.io/github/actions/workflow/status/alanshaw/abortable-iterator/js-test-and-release.yml?branch=master\\&style=flat-square)](https://github.com/alanshaw/abortable-iterator/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)\n\n> Make any iterator or iterable abortable via an AbortSignal\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\n## Example\n\n```js\nimport { abortableSource } from 'abortable-iterator'\n\nasync function main () {\n  // An example function that creates an async iterator that yields an increasing\n  // number every x milliseconds and NEVER ENDS!\n  const asyncCounter = async function * (start, delay) {\n    let i = start\n    while (true) {\n      yield new Promise(resolve => setTimeout(() => resolve(i++), delay))\n    }\n  }\n\n  // Create a counter that'll yield numbers from 0 upwards every second\n  const everySecond = asyncCounter(0, 1000)\n\n  // Make everySecond abortable!\n  const controller = new AbortController()\n  const abortableEverySecond = abortableSource(everySecond, controller.signal)\n\n  // Abort after 5 seconds\n  setTimeout(() => controller.abort(), 5000)\n\n  try {\n    // Start the iteration, which will throw after 5 seconds when it is aborted\n    for await (const n of abortableEverySecond) {\n      console.log(n)\n    }\n  } catch (err) {\n    if (err.code === 'ERR_ABORTED') {\n      // Expected - all ok :D\n    } else {\n      throw err\n    }\n  }\n}\n\nmain()\n```\n\n# Install\n\n```console\n$ npm i abortable-iterator\n```\n\n## Browser `<script>` tag\n\nLoading this module through a script tag will make its exports available as `AbortableIterator` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/abortable-iterator/dist/index.min.js\"></script>\n```\n\n## API\n\n```js\nimport {\n  abortableSource,\n  abortableSink,\n  abortableTransform,\n  abortableDuplex\n} from 'abortable-iterator'\n```\n\n- [`abortableSource(source, signal, [options])`](#abortablesource-signal-options)\n- [`abortableSink(sink, signal, [options])`](#abortablesinksink-signal-options)\n- [`abortableTransform(transform, signal, [options])`](#abortabletransformtransform-signal-options)\n- [`abortableDuplex(duplex, signal, [options])`](#abortableduplexduplex-signal-options)\n\n### `abortableSource(source, signal, [options])`\n\n**(alias for `abortable.source(source, signal, [options])`)**\n\nMake any iterator or iterable abortable via an `AbortSignal`.\n\n#### Parameters\n\n| Name                  | Type                                                                                                                                                                                                                                                 | Description                                                                                                                                                              |\n| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| source                | [`Iterable`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol)\\|[`Iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterator_protocol) | The iterator or iterable object to make abortable                                                                                                                        |\n| signal                | [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal)                                                                                                                                                                        | Signal obtained from `AbortController.signal` which is used to abort the iterator.                                                                                       |\n| options               | `Object`                                                                                                                                                                                                                                             | (optional) options                                                                                                                                                       |\n| options.onAbort       | `Function`                                                                                                                                                                                                                                           | An (async) function called when the iterator is being aborted, before the abort error is thrown. Default `null`                                                          |\n| options.abortMessage  | `String`                                                                                                                                                                                                                                             | The message that the error will have if the iterator is aborted. Default \"The operation was aborted\"                                                                     |\n| options.abortCode     | `String`\\|`Number`                                                                                                                                                                                                                                   | The value assigned to the `code` property of the error that is thrown if the iterator is aborted. Default \"ABORT\\_ERR\"                                                   |\n| options.returnOnAbort | `Boolean`                                                                                                                                                                                                                                            | Instead of throwing the abort error, just return from iterating over the source stream.                                                                                  |\n| options.onReturnError | `Function`                                                                                                                                                                                                                                           | When a generator is aborted, we call `.return` on it - if this function errors the error value will be passed to the `.onReturnError` callback if passed. Default `null` |\n\n#### Returns\n\n| Type                                                                                                                      | Description                                                                                                     |\n| ------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |\n| [`Iterable`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterator_protocol) | An iterator that wraps the passed `source` parameter that makes it abortable via the passed `signal` parameter. |\n\nThe returned iterator will `throw` an `AbortError` when it is aborted that has a `type` with the value `aborted` and `code` property with the value `ABORT_ERR` by default.\n\n### `abortableSink(sink, signal, [options])`\n\nThe same as [`abortable.source`](#abortablesource-signal-options) except this makes the passed [`sink`](https://gist.github.com/alanshaw/591dc7dd54e4f99338a347ef568d6ee9#sink-it) abortable. Returns a new sink that wraps the passed `sink` and makes it abortable via the passed `signal` parameter.\n\n### `abortableTransform(transform, signal, [options])`\n\nThe same as [`abortable.source`](#abortablesource-signal-options) except this makes the passed [`transform`](https://gist.github.com/alanshaw/591dc7dd54e4f99338a347ef568d6ee9#transform-it) abortable. Returns a new transform that wraps the passed `transform` and makes it abortable via the passed `signal` parameter.\n\n### `abortableDuplex(duplex, signal, [options])`\n\nThe same as [`abortable.source`](#abortablesource-signal-options) except this makes the passed [`duplex`](https://gist.github.com/alanshaw/591dc7dd54e4f99338a347ef568d6ee9#duplex-it) abortable. Returns a new duplex that wraps the passed `duplex` and makes it abortable via the passed `signal` parameter.\n\nNote that this will abort *both* sides of the duplex. Use `duplex.sink = abortable.sink(duplex.sink)` or `duplex.source = abortable.source(duplex.source)` to abort just the sink or the source.\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/abortable-iterator>\n\n# License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](https://github.com/alanshaw/abortable-iterator/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](https://github.com/alanshaw/abortable-iterator/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","_attachments":{},"homepage":"https://github.com/alanshaw/abortable-iterator#readme","bugs":{"url":"https://github.com/alanshaw/abortable-iterator/issues"},"license":"Apache-2.0 OR MIT"}