{"_id":"@aitor.guerrero/object-stream","_rev":"5-af7f0a242ba053e42e2a1c84875011d5","name":"@aitor.guerrero/object-stream","description":"Some helpers to ease object strems","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@aitor.guerrero/object-stream","version":"1.0.0","description":"Some helpers to ease object strems","main":"./lib/index.js","types":"./lib.d/index.d.ts","scripts":{"preversion":"npm install && npm run build && npm run check:install","test":"echo \"Error: no test specified\" && exit 1","prebuild":"rm -Rf ./lib && rm -Rf ./lib.d","build":"tsc","check:install":"npm install . -g","check:build":"tsc --noEmit","check:style":"tslint -p ."},"repository":{"type":"git","url":"git+https://github.com/AitorGuerrero/object-stream.git"},"author":{"name":"Aitor Guerrero","email":"aguerrerolasarte@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/AitorGuerrero/object-stream/issues"},"homepage":"https://github.com/AitorGuerrero/object-stream#readme","devDependencies":{"@types/node":"^8.0.51","tslint":"^5.7.0","typescript":"^2.5.3"},"gitHead":"ba96f61fc3482b81c1af93edd1253026cb7d1d7d","_id":"@aitor.guerrero/object-stream@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"aitor.guerrero","email":"aguerrerolasarte@gmail.com"},"dist":{"integrity":"sha512-thJQ4/El1sF20g6+ytK6MJfDpbpj+326vKtP56dCnEovJ9JLKCwkc3QCcmEzqvHTWx6cQdjOukQGOMxmFqqDCA==","shasum":"c2fb1ff5a6c2ddc53e04a78746d88231c7098437","tarball":"https://registry.npmjs.org/@aitor.guerrero/object-stream/-/object-stream-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHMO/WAzLNnCppIx/ngbTzwj8F6EfyQyXhzfgDNn2n3KAiEA6AXQeB33Dir/UoYRhZx3XYEiffptr3ISdKD8jI8pDXI="}]},"maintainers":[{"name":"aitor.guerrero","email":"aguerrerolasarte@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/object-stream-1.0.0.tgz_1510570276534_0.7179524726234376"}},"1.0.1":{"name":"@aitor.guerrero/object-stream","version":"1.0.1","description":"Some helpers to ease object strems","main":"./lib/index.js","types":"./lib.d/index.d.ts","scripts":{"preversion":"npm install && npm run build && npm run check:install","test":"echo \"Error: no test specified\" && exit 1","prebuild":"rm -Rf ./lib && rm -Rf ./lib.d","build":"tsc","check:install":"npm install . -g","check:build":"tsc --noEmit","check:style":"tslint -p ."},"repository":{"type":"git","url":"git+https://github.com/AitorGuerrero/object-stream.git"},"author":{"name":"Aitor Guerrero","email":"aguerrerolasarte@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/AitorGuerrero/object-stream/issues"},"homepage":"https://github.com/AitorGuerrero/object-stream#readme","devDependencies":{"@types/node":"^8.0.51","tslint":"^5.7.0","typescript":"^2.5.3"},"gitHead":"6577ef7c76153e0e499599e34396cc0dd26b7df0","_id":"@aitor.guerrero/object-stream@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"aitor.guerrero","email":"aguerrerolasarte@gmail.com"},"dist":{"integrity":"sha512-m5q/QOXwc9OM7oijA+IV0MMs3uB4ydDm0N+IVBJ8Uj52B/jdbJexrfTJgPv+pPQL/qyDdpim5L7GKINQDAdtrw==","shasum":"5ff7d1f01edfedac4e8c07490fe81aa734204d7d","tarball":"https://registry.npmjs.org/@aitor.guerrero/object-stream/-/object-stream-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFAwJRMNxhnaoZSTEzca9v+81E//8UI5UM5uGa7/2D5MAiBKB85OJjyC37hBeANBamBedZgjwo9sLc1+xTZaJ/MY3g=="}]},"maintainers":[{"name":"aitor.guerrero","email":"aguerrerolasarte@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/object-stream-1.0.1.tgz_1510571065720_0.5048812134191394"}},"1.0.2":{"name":"@aitor.guerrero/object-stream","version":"1.0.2","description":"Some helpers to ease object strems","main":"./lib/index.js","types":"./lib.d/index.d.ts","scripts":{"preversion":"npm install && npm run build && npm run check:install","test":"echo \"Error: no test specified\" && exit 1","prebuild":"rm -Rf ./lib && rm -Rf ./lib.d","build":"tsc","check:install":"npm install . -g","check:build":"tsc --noEmit","check:style":"tslint -p ."},"repository":{"type":"git","url":"git+https://github.com/AitorGuerrero/object-stream.git"},"author":{"name":"Aitor Guerrero","email":"aguerrerolasarte@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/AitorGuerrero/object-stream/issues"},"homepage":"https://github.com/AitorGuerrero/object-stream#readme","devDependencies":{"@types/node":"^8.0.51","tslint":"^5.7.0","typescript":"^2.5.3"},"gitHead":"26f7498ef6b786d968b63a9d4cfea7fb65a8bc9f","_id":"@aitor.guerrero/object-stream@1.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"aitor.guerrero","email":"aguerrerolasarte@gmail.com"},"dist":{"integrity":"sha512-5G8Ho8XBQjQiid2zgf2M8oy5mWHEGBnS18Azx9SixQ6KR2J4erb3Tpf7PEdvsh7UTZjU+P6t3fISd5AkX/JvHw==","shasum":"ce5aa91a13fd80d68e0021ad660538dab74d387c","tarball":"https://registry.npmjs.org/@aitor.guerrero/object-stream/-/object-stream-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB+wtLq14+Ff69OG3bDecSQrcN3spmPpDbDMgQwIv8XvAiEA8B7OdKk9tdLyLr5m+5cwOTZ4PaYVfqCelgnDDaeBxPY="}]},"maintainers":[{"name":"aitor.guerrero","email":"aguerrerolasarte@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/object-stream-1.0.2.tgz_1510572458261_0.6303141310345381"}},"1.0.3":{"name":"@aitor.guerrero/object-stream","version":"1.0.3","description":"Some helpers to ease object strems","main":"./lib/index.js","types":"./lib.d/index.d.ts","scripts":{"preversion":"npm install && npm run build && npm run check:install","test":"echo \"Error: no test specified\" && exit 1","prebuild":"rm -Rf ./lib && rm -Rf ./lib.d","build":"tsc","check:install":"npm install . -g","check:build":"tsc --noEmit","check:style":"tslint -p ."},"repository":{"type":"git","url":"git+https://github.com/AitorGuerrero/object-stream.git"},"author":{"name":"Aitor Guerrero","email":"aguerrerolasarte@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/AitorGuerrero/object-stream/issues"},"homepage":"https://github.com/AitorGuerrero/object-stream#readme","devDependencies":{"@types/node":"^8.0.51","tslint":"^5.7.0","typescript":"^2.5.3"},"gitHead":"3a1288abf5e0f7882561264d9329db28872f4318","_id":"@aitor.guerrero/object-stream@1.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"aitor.guerrero","email":"aguerrerolasarte@gmail.com"},"dist":{"integrity":"sha512-wOPL+i+C5S09dyMbTIjOjiatP+0E1l4wjWDYSKcJMMa+E0aQt4JUpN09GuSCFqFRllK2tOrGiUgiwVs3AstaNA==","shasum":"7ffa45932be2741271e8b9548c9e9048d248b70e","tarball":"https://registry.npmjs.org/@aitor.guerrero/object-stream/-/object-stream-1.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAhqAlLdEkO6Q++4BEIET0B+gJQekIkNQy0XJg/xGAY2AiEA10me6aNDaIY6BPwpwLP0NaHCCVn2XfI6GSi/zSkhURQ="}]},"maintainers":[{"name":"aitor.guerrero","email":"aguerrerolasarte@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/object-stream-1.0.3.tgz_1510747743900_0.37907772487960756"}},"1.1.0":{"name":"@aitor.guerrero/object-stream","version":"1.1.0","description":"Some helpers to ease object strems","main":"./lib/index.js","types":"./lib.d/index.d.ts","scripts":{"preversion":"npm install && npm run build && npm run check:install","test":"echo \"Error: no test specified\" && exit 1","prebuild":"rm -Rf ./lib && rm -Rf ./lib.d","build":"tsc","check:install":"npm install . -g","check:build":"tsc --noEmit","check:style":"tslint -p ."},"repository":{"type":"git","url":"git+https://github.com/AitorGuerrero/object-stream.git"},"author":{"name":"Aitor Guerrero","email":"aguerrerolasarte@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/AitorGuerrero/object-stream/issues"},"homepage":"https://github.com/AitorGuerrero/object-stream#readme","devDependencies":{"@types/node":"^8.0.51","mocha":"^4.0.1","tslint":"^5.7.0","typescript":"^2.5.3"},"dependencies":{},"gitHead":"6a87ebe0142537e3749da60d9d56cf819f43b5fb","_id":"@aitor.guerrero/object-stream@1.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"aitor.guerrero","email":"aguerrerolasarte@gmail.com"},"dist":{"integrity":"sha512-6X2nbZqm2u0ELH9DlWRUcNPMrAbTYROiJm61QomzxxoOFstQlNM8VoULmjUV5pAUs6FwppHYfB4XlVeGsJqweA==","shasum":"25c78d3e357055888ed4438d7497fbe6e9bf26d5","tarball":"https://registry.npmjs.org/@aitor.guerrero/object-stream/-/object-stream-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF9M36aHXFxanqgV0TWQokLKvu0vuv0wtpXklw2S+K2DAiAWnC8E3xvB8lNQozn1qeVPxG2uHFSGhOE6a8tysV0e5w=="}]},"maintainers":[{"name":"aitor.guerrero","email":"aguerrerolasarte@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/object-stream-1.1.0.tgz_1510769156235_0.19250283855944872"}}},"readme":"# Object Streams\n\nSome helper functions and classes for handling streams in a bit more easy way.\n\n## Classes\nVersions of the core stream classes using object mode by default and promises for error and ending.\n### Readable\n```\nclass Readable extends stream.Readable {\n    ended: Promise<void>;\n    closed: Promise<void>;\n    constructor(opts?: stream.ReadableOptions);\n}\n```\n### Writable\n```\nclass Writable extends stream.Writable {\n    finished: Promise<void>;\n    closed: Promise<void>;\n    constructor(opts?: stream.WritableOptions);\n}\n```\n### Duplex\n```\nclass Duplex extends stream.Duplex {\n    ended: Promise<void>;\n    finished: Promise<void>;\n    closed: Promise<void>;\n    constructor(opts?: stream.DuplexOptions);\n}\n```\n### Transform\n```\nclass Transform extends stream.Transform {\n    ended: Promise<void>;\n    finished: Promise<void>;\n    closed: Promise<void>;\n    constructor(opts?: stream.TransformOptions);\n}\n\n```\n\n## Helpers\n\n### filter\n```\nfunction filter(check: (input: any) => boolean): stream.Transform;\n```\n### forEach\n```\nfunction forEach(functionToApply: (item: any) => any): stream.Transform;\n```\n### make batches\n```\nfunction makeBatches(length: number): stream.Transform;\n```\n### map\n```\nfunction map(transformFunc: (input: any) => any): stream.Transform;\n```\n### multiMap\n```\nfunction multiMap(transformFunc: (input: any) => Promise<any[]>): stream.Transform;\n```\n### reduce\n```\nfunction reduce<R, D>(stream: stream.Readable, fn: (result: R, data: D) => any, initial?: R): Promise<R>;\n```\n### convertStreamToArray\n```\nfunction convertStreamToArray<E>(inputStream: stream.Readable): Promise<E[]>;\n```\n\n## Async Helpers\nThese are async versions of the helpers for handling promises with streams\n### asyncFilter\n```\nfunction asyncFilter(check: (input: any) => Promise<boolean>): stream.Transform;\n``` \n### asyncForEach\n```\nfunction asyncForEach(functionToApply: (item: any) => Promise<any>): stream.Transform;\n```  \n### asyncMap \n```\nfunction asyncMap(transformFunc: (input: any) => Promise<any>): stream.Transform;\n``` ","maintainers":[{"name":"aitor.guerrero","email":"aguerrerolasarte@gmail.com"}],"time":{"modified":"2022-04-04T12:25:34.896Z","created":"2017-11-13T10:51:17.463Z","1.0.0":"2017-11-13T10:51:17.463Z","1.0.1":"2017-11-13T11:04:26.636Z","1.0.2":"2017-11-13T11:27:39.323Z","1.0.3":"2017-11-15T12:09:04.857Z","1.1.0":"2017-11-15T18:05:57.138Z"},"homepage":"https://github.com/AitorGuerrero/object-stream#readme","repository":{"type":"git","url":"git+https://github.com/AitorGuerrero/object-stream.git"},"author":{"name":"Aitor Guerrero","email":"aguerrerolasarte@gmail.com"},"bugs":{"url":"https://github.com/AitorGuerrero/object-stream/issues"},"license":"ISC","readmeFilename":"README.md"}