{"id":17767320,"url":"https://github.com/jamiebuilds/spawndamnit","last_synced_at":"2025-04-09T09:11:33.663Z","repository":{"id":57367085,"uuid":"118066217","full_name":"jamiebuilds/spawndamnit","owner":"jamiebuilds","description":"Take care of your spawn()","archived":false,"fork":false,"pushed_at":"2024-11-18T20:24:09.000Z","size":129,"stargazers_count":82,"open_issues_count":9,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T08:08:45.132Z","etag":null,"topics":["async","child","events","node","processes","promises","spawn"],"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/jamiebuilds.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-19T02:32:53.000Z","updated_at":"2025-03-19T14:35:19.000Z","dependencies_parsed_at":"2024-12-25T11:14:27.345Z","dependency_job_id":"074ecdba-602d-4987-852a-c07779b6c9a7","html_url":"https://github.com/jamiebuilds/spawndamnit","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"9fec44510749481dd11906f3a979ed9ebdda4fed"},"previous_names":["thejameskyle/spawndamnit"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Fspawndamnit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Fspawndamnit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Fspawndamnit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Fspawndamnit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamiebuilds","download_url":"https://codeload.github.com/jamiebuilds/spawndamnit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008630,"owners_count":21032556,"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":["async","child","events","node","processes","promises","spawn"],"created_at":"2024-10-26T20:46:09.230Z","updated_at":"2025-04-09T09:11:33.644Z","avatar_url":"https://github.com/jamiebuilds.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spawndamnit\n\n\u003e Take care of your `spawn()`\n\n## Features\n\n- Returns an `await`-able promise\n- Collects `stdout` and `stderr` buffers\n- Emits events \"stdout\" and \"stderr\"\n- Automatically kills all spawn processes when parent process dies\n\n## Installation\n\n```sh\nyarn add spawndamnit\n```\n\n## Usage\n\n**Basic:**\n\n```js\nconst spawn = require('spawndamnit');\n\nasync function main() {\n  let child = spawn('npm', ['star', 'spawndamnit']);\n\n  child.on('stdout', data =\u003e console.log(data.toString()));\n  child.on('stderr', data =\u003e console.error(data.toString()));\n\n  let { code, stdout, stderr } = await child;\n\n  console.log(code === 0 ? 'success' : 'error');\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiebuilds%2Fspawndamnit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamiebuilds%2Fspawndamnit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiebuilds%2Fspawndamnit/lists"}