{"id":27171030,"url":"https://github.com/alloc/picospawn","last_synced_at":"2025-04-14T20:19:25.506Z","repository":{"id":286713680,"uuid":"962328275","full_name":"alloc/picospawn","owner":"alloc","description":"Minimalist `spawn` and `spawnSync` enhancements for Node.js","archived":false,"fork":false,"pushed_at":"2025-04-14T20:09:00.000Z","size":41,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T20:19:21.880Z","etag":null,"topics":["childprocess","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/alloc.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":"2025-04-08T01:58:34.000Z","updated_at":"2025-04-14T20:09:03.000Z","dependencies_parsed_at":"2025-04-10T04:10:07.422Z","dependency_job_id":null,"html_url":"https://github.com/alloc/picospawn","commit_stats":null,"previous_names":["alloc/picospawn"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fpicospawn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fpicospawn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fpicospawn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Fpicospawn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alloc","download_url":"https://codeload.github.com/alloc/picospawn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248952356,"owners_count":21188427,"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":["childprocess","nodejs"],"created_at":"2025-04-09T08:22:24.870Z","updated_at":"2025-04-14T20:19:25.483Z","avatar_url":"https://github.com/alloc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# picospawn\n\nMinimalist `spawn` replacement with a focus on simplicity and ease of use.\n\n```\npnpm add picospawn\n```\n\n## Usage\n\n```ts\nimport $ from 'picospawn'\n\nconst proc = $('ls -l /', {\n  // These are the default options.\n  cwd: process.cwd(),\n  env: process.env,\n  stdio: 'pipe',\n  reject: true,\n  json: false,\n  // …and any other `spawn` option.\n})\nproc.stdout // ReadableStream | null\nproc.stderr // ReadableStream | null\n\nconst result = await proc\nresult.stdout // string\nresult.stderr // string\n```\n\n### Features\n\n- Pass a single string or an array of arguments to the command.\n- Return a promise that resolves to a `ChildProcess` object.\n- Parse the stdout as JSON with `json: true` or `$.json()`.\n- Throw an error if the command exits with a non-zero code. Opt-out with `reject: false`.\n- Set default options with `$.extend()`.\n- Excellent TypeScript support.\n- ESM and CommonJS compatible.\n- …and more!\n\n## Prior Art\n\n- [tinyspawn](https://github.com/microlinkhq/tinyspawn)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falloc%2Fpicospawn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falloc%2Fpicospawn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falloc%2Fpicospawn/lists"}