{"id":13659301,"url":"https://github.com/floatdrop/glue-streams","last_synced_at":"2025-04-01T13:45:15.949Z","repository":{"id":20376803,"uuid":"23652311","full_name":"floatdrop/glue-streams","owner":"floatdrop","description":"Compose one stream from other streams, arrays or individual objects","archived":false,"fork":false,"pushed_at":"2014-09-04T08:18:06.000Z","size":144,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T01:31:41.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/floatdrop.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-04T07:11:48.000Z","updated_at":"2016-03-30T22:07:08.000Z","dependencies_parsed_at":"2022-08-03T08:15:30.710Z","dependency_job_id":null,"html_url":"https://github.com/floatdrop/glue-streams","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fglue-streams","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fglue-streams/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fglue-streams/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fglue-streams/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floatdrop","download_url":"https://codeload.github.com/floatdrop/glue-streams/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246651508,"owners_count":20811991,"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":[],"created_at":"2024-08-02T05:01:07.242Z","updated_at":"2025-04-01T13:45:15.927Z","avatar_url":"https://github.com/floatdrop.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# glue-streams\n\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]\n\nCompose one stream from other streams, arrays or individual objects.\n\nBased on [`multistream`](https://github.com/feross/multistream) :cat:\n\n## Usage\n\n```js\nvar glue = require('glue-streams');\nvar stream = require('stream-array');\n\nglue.options = {\n    objectMode: false,\n    highWaterMark: 16\n};\n\nvar glued = glue.obj(\n    [1,2,3],\n    4,\n    stream([5,6,7])\n);\nglued.pipe(process.stdout);\n\n/* Output:\n1234567\n*/\n```\n\n## API\n\n### glue(streams...)\n\nReturns stream that will emit objects from passed streams.\n\n`streams` could be:\n\n * Readable stream object\n * Ordinary object\n * Array of objects\n\n### glue.obj(streams...)\n\nCreating object stream (overrides `glue.options.objectMode` to true).\n\n### glue.options\n\nObject, that contains options, which will be used for every call to `glue(...)` or `glue.obj(...)`.\n\n#### objectMode\nType: `Boolean`  \nDefault: `false`\n\n#### highWaterMark\nType: `Number`  \nDefault: `16`  \n\n## License\n\nMIT (c) 2014 Vsevolod Strukchinsky\n\n[npm-url]: https://npmjs.org/package/glue-streams\n[npm-image]: http://img.shields.io/npm/v/glue-streams.svg?style=flat\n\n[travis-url]: http://travis-ci.org/floatdrop/glue-streams\n[travis-image]: http://img.shields.io/travis/floatdrop/glue-streams.svg?branch=master\u0026style=flat\n\n[depstat-url]: https://david-dm.org/floatdrop/glue-streams\n[depstat-image]: http://img.shields.io/david/floatdrop/glue-streams.svg?style=flat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fglue-streams","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloatdrop%2Fglue-streams","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fglue-streams/lists"}