{"id":19326879,"url":"https://github.com/panosoft/spawn-promise","last_synced_at":"2025-04-22T20:32:55.510Z","repository":{"id":35529382,"uuid":"39800215","full_name":"panosoft/spawn-promise","owner":"panosoft","description":"Spawns a process and makes it simple to pipe data in and get data out.","archived":false,"fork":false,"pushed_at":"2018-03-29T22:36:20.000Z","size":11,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-17T01:14:27.434Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/panosoft.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":"2015-07-27T22:06:46.000Z","updated_at":"2020-07-20T08:51:09.000Z","dependencies_parsed_at":"2022-09-08T15:23:18.893Z","dependency_job_id":null,"html_url":"https://github.com/panosoft/spawn-promise","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panosoft%2Fspawn-promise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panosoft%2Fspawn-promise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panosoft%2Fspawn-promise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panosoft%2Fspawn-promise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panosoft","download_url":"https://codeload.github.com/panosoft/spawn-promise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250318986,"owners_count":21411028,"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-11-10T02:15:12.124Z","updated_at":"2025-04-22T20:32:55.245Z","avatar_url":"https://github.com/panosoft.png","language":"JavaScript","readme":"# spawn-promise\n\nSpawns a process and makes it simple to pipe data in and get data out.\n\n[![npm version](https://img.shields.io/npm/v/spawn-promise.svg)](https://www.npmjs.com/package/spawn-promise)\n[![npm license](https://img.shields.io/npm/l/spawn-promise.svg)](https://www.npmjs.com/package/spawn-promise)\n[![Travis](https://img.shields.io/travis/panosoft/spawn-promise.svg)](https://travis-ci.org/panosoft/spawn-promise)\n[![David](https://img.shields.io/david/panosoft/spawn-promise.svg)](https://david-dm.org/panosoft/spawn-promise)\n[![npm downloads](https://img.shields.io/npm/dm/spawn-promise.svg)](https://www.npmjs.com/package/spawn-promise)\n\n## Installation\n\n```sh\nnpm install spawn-promise\n```\n\n## Usage\n\n```js\nvar spawn = require('spawn-promise');\n\nspawn('grep', ['H'], 'Hello').then(function (buffer) {\n  console.log(buffer.toString()); // Hello\n});\n```\n\n## API\n\n- [`spawn`](#spawn)\n\n---\n\n\u003ca name=\"spawn\"\u003e\u003c/a\u003e\n#### spawn ( command [, args] [, input] )\n\nSpawns a child process with the given `command`, writes the `input` value to `stdin`, and returns a `Promise` that is fulfilled with the concatenated `stdout` buffer.\n\n__Arguments__\n\n- `command` - The command to run.\n- `args` - An array of arguments to run the `command` with.\n- `input` - The value to write to `stdin`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanosoft%2Fspawn-promise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanosoft%2Fspawn-promise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanosoft%2Fspawn-promise/lists"}