{"id":19621396,"url":"https://github.com/commenthol/streamss-fork","last_synced_at":"2026-06-03T23:31:44.441Z","repository":{"id":66111697,"uuid":"222203207","full_name":"commenthol/streamss-fork","owner":"commenthol","description":"Fork stream2 into several streams","archived":false,"fork":false,"pushed_at":"2021-10-10T05:37:55.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-09T11:38:20.456Z","etag":null,"topics":["fork","stream2"],"latest_commit_sha":null,"homepage":null,"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/commenthol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-17T05:45:33.000Z","updated_at":"2021-10-10T05:37:57.000Z","dependencies_parsed_at":"2023-03-05T15:30:42.676Z","dependency_job_id":null,"html_url":"https://github.com/commenthol/streamss-fork","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fstreamss-fork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fstreamss-fork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fstreamss-fork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fstreamss-fork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commenthol","download_url":"https://codeload.github.com/commenthol/streamss-fork/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240914943,"owners_count":19878068,"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":["fork","stream2"],"created_at":"2024-11-11T11:22:46.291Z","updated_at":"2026-06-03T23:31:44.428Z","avatar_url":"https://github.com/commenthol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# streamss-fork\n\n\u003e Fork stream2 into several streams\n\n[![NPM version](https://badge.fury.io/js/streamss-fork.svg)](https://www.npmjs.com/package/streamss-fork/)\n[![Build Status](https://secure.travis-ci.org/commenthol/streamss-fork.svg?branch=master)](https://travis-ci.org/commenthol/streamss-fork)\n\nFork a single stream into multiple other streams.\nThe main stream can be piped as well.\n\n## Install\n\n    npm i -S streamss-fork\n\n## Example\n\n**Fork a stream**\n\nSame as `cat package.json | tee one.log two.log` in bash...\n\n```js\nconst fs = require('fs')\nconst { fork } = require('streamss-fork')\n\nconst one = fs.createWriteStream(`./one.log`)\nconst two = fs.createWriteStream(`./two.log`)\n\nfs.createReadStream(`./package.json`)\n  .pipe(fork([one, two]/* ,{ objectMode: false }*/))\n  .pipe(process.stdout)\n```\n\n\n## Methods\n\n### fork([streams], options)\n\n**Parameters:**\n\n- `{Writable[]} streams` - Array of Writable Streams\n- `{Object} [options]` - see [https://nodejs.org/...](https://nodejs.org/dist/latest/docs/api/stream.html#stream_constructor_new_stream_writable_options)\n\n**Return:**\n\n`{Transform}` A Transform stream\n\n\n## Contribution and License Agreement\n\nIf you contribute code to this project, you are implicitly allowing your\ncode to be distributed under the MIT license. You are also implicitly\nverifying that all code is your original work or correctly attributed\nwith the source of its origin and licence.\n\n\n## License\n\nCopyright (c) 2019 commenthol (MIT License)\n\nSee [LICENSE][] for more info.\n\n[LICENSE]: ./LICENSE\n[stream-cat]: https://github.com/micnews/stream-cat\n[Readable]: http://nodejs.org/api/stream.html#stream_class_stream_readable\n[readable-stream]: https://github.com/isaacs/readable-stream\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommenthol%2Fstreamss-fork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommenthol%2Fstreamss-fork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommenthol%2Fstreamss-fork/lists"}