{"id":17445964,"url":"https://github.com/jamen/pull-spawn-process","last_synced_at":"2025-04-02T10:43:06.278Z","repository":{"id":65478658,"uuid":"90625248","full_name":"jamen/pull-spawn-process","owner":"jamen","description":"Use pull-streams with child_process.spawn stdio","archived":false,"fork":false,"pushed_at":"2017-05-08T12:33:21.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-08T17:54:12.187Z","etag":null,"topics":[],"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/jamen.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}},"created_at":"2017-05-08T12:23:26.000Z","updated_at":"2021-12-19T15:38:47.000Z","dependencies_parsed_at":"2023-01-25T07:55:12.734Z","dependency_job_id":null,"html_url":"https://github.com/jamen/pull-spawn-process","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-spawn-process","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-spawn-process/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-spawn-process/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-spawn-process/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamen","download_url":"https://codeload.github.com/jamen/pull-spawn-process/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246802594,"owners_count":20836365,"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-17T18:19:06.843Z","updated_at":"2025-04-02T10:43:06.220Z","avatar_url":"https://github.com/jamen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# pull-spawn-process\n\n\u003e Use pull-streams with `child_process.spawn` stdio\n\nA convenient wrapper around [`child_process.spawn`]() for use with [`pull-stream`](https://github.com/pull-stream/pull-stream)\n\n```js\nvar cat = spawn('cat', ['somefile.txt'])\n\n// Read the process's stdout\npull(cat, drain(console.log))\n\n// Write process stdin\npull(values(['foo', 'bar']), cat)\n```\n\nReturns a duplex stream with an additional `error` prop to handle `proc.stderr`.  The other child_process methods are available too.\n\n## Install\n\n```sh\nnpm install --save pull-spawn-process\n\n# with yarn\nyarn add pull-spawn-process\n```\n\n## Usage\n\n### `spawn(command, args?, options?)`\n\nThe signature is the same as [`child_process.spawn`](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options), except returns a duplex pull-stream.\n\n```js\nvar cat = spawn('cat')\nvar echo = spawn('echo', ['foo', 'bar'])\nvar eslint = spawn('eslint', files, { stdio: 'inherit' })\n```\n\nThe rest of the `ChildProcess` methods are exposed on the object\n\n---\n\nMaintained by [Jamen Marz](https://git.io/jamen) (See on [Twitter](https://twitter.com/jamenmarz) and [GitHub](https://github.com/jamen) for questions \u0026 updates)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fpull-spawn-process","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamen%2Fpull-spawn-process","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fpull-spawn-process/lists"}