{"_id":"it-pair","_rev":"4650374","name":"it-pair","description":"pair a source async iterable stream and a sink async iterable stream","dist-tags":{"latest":"2.0.6"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"time":{"modified":"2026-04-10T20:33:28.000Z","created":"2019-04-30T20:15:13.651Z","2.0.6":"2023-04-18T06:52:38.578Z","2.0.5":"2023-04-17T16:39:16.803Z","2.0.4":"2023-02-23T13:15:46.099Z","2.0.3":"2022-08-10T10:27:49.273Z","2.0.2":"2022-01-13T16:21:06.143Z","2.0.1":"2022-01-12T15:13:27.606Z","2.0.0":"2022-01-12T15:01:32.020Z","1.0.0":"2019-04-30T20:15:13.651Z"},"users":{},"author":{"name":"Alan Shaw"},"repository":{"type":"git","url":"git+https://github.com/alanshaw/it-pair.git"},"versions":{"2.0.6":{"name":"it-pair","version":"2.0.6","description":"pair a source async iterable stream and a sink async iterable stream","author":{"name":"Alan Shaw"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/alanshaw/it-pair#readme","repository":{"type":"git","url":"git+https://github.com/alanshaw/it-pair.git"},"bugs":{"url":"https://github.com/alanshaw/it-pair/issues"},"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","build":"aegir build","test":"aegir 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":{"it-stream-types":"^2.0.1","p-defer":"^4.0.0"},"devDependencies":{"aegir":"^38.1.6","it-all":"^3.0.1","it-drain":"^3.0.1","it-pipe":"^3.0.1"},"gitHead":"8350da589a9efc619dcb103bcb6444b825f2ec9d","_id":"it-pair@2.0.6","_nodeVersion":"18.15.0","_npmVersion":"8.19.4","dist":{"shasum":"072defa6b96f611af34e0b0c84573107ddb9f28f","size":4157,"noattachment":false,"key":"/it-pair/-/it-pair-2.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/it-pair/download/it-pair-2.0.6.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/it-pair_2.0.6_1681800758311_0.9747766174458923"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-18T06:52:38.578Z","publish_time":1681800758578,"_cnpm_publish_time":1681800758578},"2.0.5":{"name":"it-pair","version":"2.0.5","description":"pair a source async iterable stream and a sink async iterable stream","author":{"name":"Alan Shaw"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/alanshaw/it-pair#readme","repository":{"type":"git","url":"git+https://github.com/alanshaw/it-pair.git"},"bugs":{"url":"https://github.com/alanshaw/it-pair/issues"},"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","build":"aegir build","test":"aegir 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"},"dependencies":{"it-stream-types":"^1.0.3","p-defer":"^4.0.0"},"devDependencies":{"aegir":"^38.1.6","it-all":"^3.0.1","it-drain":"^3.0.1","it-pipe":"^3.0.1"},"gitHead":"51ac14500a366d723275205354a283cff9246f58","_id":"it-pair@2.0.5","_nodeVersion":"18.15.0","_npmVersion":"8.19.4","dist":{"shasum":"2b0d1be5fb2532c66e3b8d24675c41a94937f433","size":3395,"noattachment":false,"key":"/it-pair/-/it-pair-2.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/it-pair/download/it-pair-2.0.5.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/it-pair_2.0.5_1681749556644_0.1398375017709419"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-17T16:39:16.803Z","publish_time":1681749556803,"_cnpm_publish_time":1681749556803},"2.0.4":{"name":"it-pair","version":"2.0.4","description":"pair a source async iterable stream and a sink async iterable stream","author":{"name":"Alan Shaw"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/alanshaw/it-pair#readme","repository":{"type":"git","url":"git+https://github.com/alanshaw/it-pair.git"},"bugs":{"url":"https://github.com/alanshaw/it-pair/issues"},"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","build":"aegir build","test":"aegir 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"},"dependencies":{"it-stream-types":"^1.0.3","p-defer":"^4.0.0"},"devDependencies":{"aegir":"^38.1.6","it-all":"^2.0.0","it-drain":"^2.0.0","it-pipe":"^2.0.0"},"gitHead":"2336d45ac11bb2f5d457d7befe04924aecb4a9d9","_id":"it-pair@2.0.4","_nodeVersion":"18.14.1","_npmVersion":"8.19.4","dist":{"shasum":"3113fd3f0b573f823cfd6c4339432ea7ddebc7c8","size":3397,"noattachment":false,"key":"/it-pair/-/it-pair-2.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/it-pair/download/it-pair-2.0.4.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/it-pair_2.0.4_1677158145911_0.1393775102551862"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-23T13:15:46.099Z","publish_time":1677158146099,"_cnpm_publish_time":1677158146099},"2.0.3":{"name":"it-pair","version":"2.0.3","description":"pair a source async iterable stream and a sink async iterable stream","author":{"name":"Alan Shaw"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/alanshaw/it-pair#readme","repository":{"type":"git","url":"git+https://github.com/alanshaw/it-pair.git"},"bugs":{"url":"https://github.com/alanshaw/it-pair/issues"},"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","build":"aegir build","test":"aegir 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"},"dependencies":{"it-stream-types":"^1.0.3","p-defer":"^4.0.0"},"devDependencies":{"aegir":"^37.4.8","it-all":"^1.0.6","it-drain":"^1.0.5","it-pipe":"^2.0.0"},"gitHead":"b4c46826eda56beafdd488bfa10731e19542ba54","_id":"it-pair@2.0.3","_nodeVersion":"16.16.0","_npmVersion":"8.16.0","dist":{"shasum":"cdb1890e021e053153f26893c98c4e0094f53660","size":3396,"noattachment":false,"key":"/it-pair/-/it-pair-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/it-pair/download/it-pair-2.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/it-pair_2.0.3_1660127269092_0.44604050624945923"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-10T10:56:34.544Z","publish_time":1660127269273,"_cnpm_publish_time":1660127269273},"2.0.2":{"name":"it-pair","description":"pair a source async iterable stream and a sink async iterable stream","version":"2.0.2","homepage":"https://github.com/alanshaw/it-pair","repository":{"type":"git","url":"git://github.com/alanshaw/it-pair.git"},"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"},"devDependencies":{"aegir":"^36.1.3","it-all":"^1.0.6","it-drain":"^1.0.5","it-pipe":"^2.0.0"},"author":{"name":"Alan Shaw"},"license":"MIT","dependencies":{"it-stream-types":"^1.0.3","p-defer":"^4.0.0"},"gitHead":"597eba0bc5681fef1bb66cb4ac10fc5915445bb8","bugs":{"url":"https://github.com/alanshaw/it-pair/issues"},"_id":"it-pair@2.0.2","_nodeVersion":"16.13.2","_npmVersion":"7.24.2","dist":{"shasum":"1e6c7f35e8042019942b8996c0c13784d576e2d7","size":3656,"noattachment":false,"key":"/it-pair/-/it-pair-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/it-pair/download/it-pair-2.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/it-pair_2.0.2_1642090865888_0.4788360872486144"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-13T16:21:17.462Z","publish_time":1642090866143,"_cnpm_publish_time":1642090866143},"2.0.1":{"name":"it-pair","description":"pair a source async iterable stream and a sink async iterable stream","version":"2.0.1","homepage":"https://github.com/alanshaw/it-pair","repository":{"type":"git","url":"git://github.com/alanshaw/it-pair.git"},"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"},"devDependencies":{"aegir":"^36.1.3","it-all":"^1.0.6","it-drain":"^1.0.5","it-pipe":"^2.0.0"},"author":{"name":"Alan Shaw"},"license":"MIT","dependencies":{"it-stream-types":"^1.0.3","p-defer":"^4.0.0"},"gitHead":"4d8422c5e17e7d64ff9cba6afefa423faec4a30c","bugs":{"url":"https://github.com/alanshaw/it-pair/issues"},"_id":"it-pair@2.0.1","_nodeVersion":"16.13.1","_npmVersion":"7.24.2","dist":{"shasum":"2cba3102d1c69d74591b213893be32dd80d8d1c8","size":3650,"noattachment":false,"key":"/it-pair/-/it-pair-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/it-pair/download/it-pair-2.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/it-pair_2.0.1_1642000407411_0.8751332733976955"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-12T15:23:36.342Z","publish_time":1642000407606,"_cnpm_publish_time":1642000407606},"2.0.0":{"name":"it-pair","description":"pair a source async iterable stream and a sink async iterable stream","version":"2.0.0","homepage":"https://github.com/alanshaw/it-pair","repository":{"type":"git","url":"git://github.com/alanshaw/it-pair.git"},"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"},"devDependencies":{"aegir":"^36.1.3","it-all":"^1.0.6","it-drain":"^1.0.5","it-pipe":"^2.0.0"},"author":{"name":"Alan Shaw"},"license":"MIT","dependencies":{"it-stream-types":"^1.0.3","p-defer":"^4.0.0"},"gitHead":"017709a9ef47d360c52c45b1cb8ee13cd9eb42f8","bugs":{"url":"https://github.com/alanshaw/it-pair/issues"},"_id":"it-pair@2.0.0","_nodeVersion":"16.13.1","_npmVersion":"7.24.2","dist":{"shasum":"5b0b60a11bf6a34a0be00e63ac6afc344396d999","size":3656,"noattachment":false,"key":"/it-pair/-/it-pair-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/it-pair/download/it-pair-2.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/it-pair_2.0.0_1641999691854_0.07700329769938796"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-12T15:01:37.934Z","publish_time":1641999692020,"_cnpm_publish_time":1641999692020},"1.0.0":{"name":"it-pair","description":"pair a source async iterable stream and a sink async iterable stream","version":"1.0.0","homepage":"https://github.com/alanshaw/it-pair","repository":{"type":"git","url":"git://github.com/alanshaw/it-pair.git"},"devDependencies":{"it-pipe":"^1.0.1","standard":"^12.0.1","tape":"^4.5.1"},"scripts":{"test":"standard && set -e; for t in test/*.js; do node $t; done"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"dominictarr.com"},"license":"MIT","dependencies":{"get-iterator":"^1.0.2"},"gitHead":"f092bc1d06cc3b92ddb31919380dc3d1f2f5e7e2","bugs":{"url":"https://github.com/alanshaw/it-pair/issues"},"_id":"it-pair@1.0.0","_nodeVersion":"12.0.0","_npmVersion":"6.9.0","_npmUser":{"name":"alanshaw","email":"alan138@gmail.com"},"dist":{"shasum":"b1add81f49af16a10b2939dbef7b1974fae87d6a","size":2455,"noattachment":false,"key":"/it-pair/-/it-pair-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/it-pair/download/it-pair-1.0.0.tgz"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"alanshaw","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/it-pair_1.0.0_1556655313478_0.2807951209973216"},"_hasShrinkwrap":false,"publish_time":1556655313651,"_cnpm_publish_time":1556655313651,"_cnpmcore_publish_time":"2021-12-16T11:27:00.781Z"}},"readme":"# it-pair <!-- omit in toc -->\n\n[![codecov](https://img.shields.io/codecov/c/github/alanshaw/it-pair.svg?style=flat-square)](https://codecov.io/gh/alanshaw/it-pair)\n[![CI](https://img.shields.io/github/actions/workflow/status/alanshaw/it-pair/js-test-and-release.yml?branch=master\\&style=flat-square)](https://github.com/alanshaw/it-pair/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)\n\n> pair a source async iterable stream and a sink async iterable stream\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n  - [Browser `<script>` tag](#browser-script-tag)\n- [API Docs](#api-docs)\n- [License](#license)\n- [Contribution](#contribution)\n\n## Install\n\n```console\n$ npm i it-pair\n```\n\n### Browser `<script>` tag\n\nLoading this module through a script tag will make it's exports available as `ItPair` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/it-pair/dist/index.min.js\"></script>\n```\n\nA pair of {source, sink} streams that are internally connected,\n(what goes into the sink comes out the source)\n\nThis can be used to construct pipelines that are connected.\n\n```js\nimport { pipe } from 'it-pipe'\nimport { pair } from 'it-pair'\n\nvar p = pair()\n\n//read values into this sink...\npipe([1, 2, 3], p.sink)\n\n//but that should become the source over here.\nconst values = await pipe(p.source, async source => {\n  const values = []\n  for await (const value of source) {\n    values.push(value)\n  }\n  return value\n})\n\nconsole.log(values) //[1, 2, 3]\n```\n\nThis is particularly useful for creating duplex streams especially\naround servers. Use `it-pair/duplex` to get two duplex streams\nthat are attached to each other.\n\n```js\nimport { duplexPair } from 'it-pair/duplex'\n\nvar d = duplexPair()\n\n//the \"client\": pipe to the first duplex and get the response.\npipe(\n  [1,2,3],\n  d[0],\n  source => {\n    for await (value of source) {\n      console.log(value) // => 10, 20, 30\n    }\n  }\n)\n\n//the \"server\": pipe from the second stream back to itself\n//(in this case) appling a transformation.\npipe(\n  d[1],\n  source => (async function * () {\n    for await (const e of source) {\n      yield e*10\n    }\n  })(),\n  d[1]\n)\n```\n\n## API Docs\n\n- <https://alanshaw.github.io/it-pair>\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","_attachments":{},"homepage":"https://github.com/alanshaw/it-pair#readme","bugs":{"url":"https://github.com/alanshaw/it-pair/issues"},"license":"Apache-2.0 OR MIT"}