{"id":29189401,"url":"https://github.com/coderaiser/pipe-io","last_synced_at":"2025-07-01T23:07:27.985Z","repository":{"id":15134254,"uuid":"17861472","full_name":"coderaiser/pipe-io","owner":"coderaiser","description":"Pipe streams and handle events","archived":false,"fork":false,"pushed_at":"2022-03-27T12:13:15.000Z","size":301,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-23T06:03:52.435Z","etag":null,"topics":["javascript","nodejs","pipe","stream"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coderaiser.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-18T10:12:20.000Z","updated_at":"2022-03-27T12:13:18.000Z","dependencies_parsed_at":"2022-09-13T10:51:48.553Z","dependency_job_id":null,"html_url":"https://github.com/coderaiser/pipe-io","commit_stats":null,"previous_names":[],"tags_count":72,"template":false,"template_full_name":null,"purl":"pkg:github/coderaiser/pipe-io","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fpipe-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fpipe-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fpipe-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fpipe-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderaiser","download_url":"https://codeload.github.com/coderaiser/pipe-io/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fpipe-io/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263047676,"owners_count":23405280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","nodejs","pipe","stream"],"created_at":"2025-07-01T23:07:27.345Z","updated_at":"2025-07-01T23:07:27.939Z","avatar_url":"https://github.com/coderaiser.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pipe-io [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\nPipe [streams](https://github.com/substack/stream-handbook) and handle events.\n\n## Install\n\n```\nnpm i pipe-io\n```\n\n## `pipe`\n\nCreate pipe between streams and adds callback wich would \nbe called once whenever everything is done, or error occures.\n\n```js\nconst fs = require('fs');\n\nconst pipe = require('pipe-io');\nconst tryToCatch = require('try-to-catch');\n\nconst NAME = 'README.md';\nconst NAME2 = 'README2.md';\nconst readStream = fs.createReadStream(NAME);\nconst writeStream = fs.createWriteStream(NAME2);\n\nconst [e] = await tryToCatch(pipe, [readStream, writeStream]);\n```\n\n## Related\n\n- [Pullout](https://github.com/coderaiser/pullout \"Pullout\") - pull out data from stream\n\n## License\nMIT\n\n[NPMIMGURL]:                https://img.shields.io/npm/v/pipe-io.svg?style=flat\n[BuildStatusIMGURL]:        https://img.shields.io/travis/coderaiser/pipe-io/master.svg?style=flat\n[DependencyStatusIMGURL]:   https://img.shields.io/david/coderaiser/pipe-io.svg?style=flat\n[LicenseIMGURL]:            https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[CoverageIMGURL]:           https://coveralls.io/repos/coderaiser/pipe-io/badge.svg?branch=master\u0026service=github\n[NPMURL]:                   https://npmjs.org/package/pipe-io \"npm\"\n[BuildStatusURL]:           https://travis-ci.org/coderaiser/pipe-io  \"Build Status\"\n[DependencyStatusURL]:      https://david-dm.org/coderaiser/pipe-io \"Dependency Status\"\n[LicenseURL]:               https://tldrlegal.com/license/mit-license \"MIT License\"\n[CoverageURL]:              https://coveralls.io/github/coderaiser/pipe-io?branch=master\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fpipe-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderaiser%2Fpipe-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fpipe-io/lists"}