{"id":17859283,"url":"https://github.com/dex4er/js-stream.pipeline-shim","last_synced_at":"2025-03-20T19:30:52.465Z","repository":{"id":57108094,"uuid":"133420062","full_name":"dex4er/js-stream.pipeline-shim","owner":"dex4er","description":"Polyfill for stream.pipeline in node versions \u003c v10","archived":false,"fork":false,"pushed_at":"2019-05-08T20:05:15.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T00:38:24.670Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dex4er.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-05-14T20:52:17.000Z","updated_at":"2021-03-30T12:46:19.000Z","dependencies_parsed_at":"2022-08-20T17:10:49.021Z","dependency_job_id":null,"html_url":"https://github.com/dex4er/js-stream.pipeline-shim","commit_stats":null,"previous_names":["dex4er/js-stream.pipeline"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dex4er%2Fjs-stream.pipeline-shim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dex4er%2Fjs-stream.pipeline-shim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dex4er%2Fjs-stream.pipeline-shim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dex4er%2Fjs-stream.pipeline-shim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dex4er","download_url":"https://codeload.github.com/dex4er/js-stream.pipeline-shim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244079606,"owners_count":20394761,"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-10-28T06:42:14.186Z","updated_at":"2025-03-20T19:30:48.403Z","avatar_url":"https://github.com/dex4er.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stream.pipeline-shim\n\n\u003c!-- markdownlint-disable MD013 --\u003e\n[![Build Status](https://secure.travis-ci.org/dex4er/js-stream.pipeline-shim.svg)](http://travis-ci.org/dex4er/js-stream.pipeline-shim) [![npm](https://img.shields.io/npm/v/stream.pipeline-shim.svg)](https://www.npmjs.com/package/stream.pipeline-shim)\n\u003c!-- markdownlint-enable MD013 --\u003e\n\nPolyfill for stream.pipeline in node versions \u0026lt; v10\n\nnode v10.0.0 added support for a built-in `stream.pipeline`:\n\u003chttps://github.com/nodejs/node/pull/19828\u003e\n\nThis package provides the built-in `stream.pipeline` in node v10.0.0 and later,\nand a replacement in other environments.\n\nThis module requires Node \u003e= 5.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api)\ninterface. It works in an ES5-supported environment and complies with the\n[spec](http://www.ecma-international.org/ecma-262/6.0/).\n\n## Installation\n\n```shell\nnpm install stream.pipeline-shim\n```\n\n_Additionally for Typescript:_\n\n```shell\nnpm install -D @types/node\n```\n\n## Usage\n\n### Direct\n\n```js\nconst pipeline = require('stream.pipeline-shim');\n// Use `pipeline` just like the built-in method on `stream`\n```\n\n_Typescript:_\n\n```ts\nimport pipeline from 'stream.pipeline-shim';\n// Use `pipeline` just like the built-in method on `stream`\n```\n\n### Shim\n\n```js\nrequire('stream.pipeline-shim/shim')();\n// `stream.pipeline` is now defined\nconst stream = require('stream');\n// Use `stream.pipeline`\n```\n\nor:\n\n```js\nrequire('stream.pipeline-shim/auto');\n// `stream.pipeline` is now defined\nconst stream = require('stream');\n// Use `stream.pipeline`\n```\n\n_Typescript:_\n\n```js\nimport finishedShim from 'stream.pipeline-shim/shim';\nfinishedShim();\n// `stream.pipeline` is now defined\nimport stream from 'stream';\n// Use `stream.pipeline`\n```\n\nor:\n\n```js\nimport 'stream.pipeline-shim/auto';\n// `stream.pipeline` is now defined\nimport stream from 'stream';\n// Use `stream.pipeline`\n```\n\n## License\n\nCopyright (c) 2018-2019 Piotr Roszatycki \u003cpiotr.roszatycki@gmail.com\u003e\n\nCopyright Node.js contributors. All rights reserved.\n\nCopyright (c) 2014 Mathias Buus\n\n[MIT](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdex4er%2Fjs-stream.pipeline-shim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdex4er%2Fjs-stream.pipeline-shim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdex4er%2Fjs-stream.pipeline-shim/lists"}