{"id":28552309,"url":"https://github.com/stream-utils/pause","last_synced_at":"2025-07-01T04:34:39.172Z","repository":{"id":4087882,"uuid":"5194451","full_name":"stream-utils/pause","owner":"stream-utils","description":"Pause a stream's data events","archived":false,"fork":false,"pushed_at":"2018-09-14T00:31:28.000Z","size":26,"stargazers_count":27,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T04:08:42.598Z","etag":null,"topics":["javascript","nodejs","pause","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/stream-utils.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.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":"2012-07-26T16:27:43.000Z","updated_at":"2025-05-29T16:56:31.000Z","dependencies_parsed_at":"2022-08-26T01:10:29.833Z","dependency_job_id":null,"html_url":"https://github.com/stream-utils/pause","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/stream-utils/pause","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stream-utils%2Fpause","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stream-utils%2Fpause/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stream-utils%2Fpause/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stream-utils%2Fpause/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stream-utils","download_url":"https://codeload.github.com/stream-utils/pause/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stream-utils%2Fpause/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262898619,"owners_count":23381607,"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","pause","stream"],"created_at":"2025-06-10T04:08:39.853Z","updated_at":"2025-07-01T04:34:39.159Z","avatar_url":"https://github.com/stream-utils.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pause\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Node.js Version][node-image]][node-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n\nPause a stream's data events\n\n## Installation\n\n```sh\n$ npm install pause\n```\n\n## API\n\n```js\nvar pause = require('pause')\n```\n\n### handle = pause(stream)\n\nPause the data events on a stream and return a handle to resume or end the\nstream.\n\n#### handle.end()\n\nDispose of the handle. This does not end the stream, but it simply discards\nthe event collection, making `handle.resume()` a no-op.\n\n#### handle.resume()\n\nResume the stream by re-emitting all the `data` events in the same order,\nfollowed by an `end` event, if that was emitting during the pause.\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/pause.svg\n[npm-url]: https://npmjs.org/package/pause\n[node-image]: https://img.shields.io/node/v/pause.svg\n[node-url]: https://nodejs.org/en/download/\n[travis-image]: https://img.shields.io/travis/stream-utils/pause/master.svg\n[travis-url]: https://travis-ci.org/stream-utils/pause\n[coveralls-image]: https://img.shields.io/coveralls/stream-utils/pause.svg\n[coveralls-url]: https://coveralls.io/r/stream-utils/pause?branch=master\n[downloads-image]: https://img.shields.io/npm/dm/pause.svg\n[downloads-url]: https://npmjs.org/package/pause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstream-utils%2Fpause","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstream-utils%2Fpause","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstream-utils%2Fpause/lists"}