{"id":21565111,"url":"https://github.com/cfware/process-on-spawn","last_synced_at":"2025-08-21T00:30:47.990Z","repository":{"id":57330857,"uuid":"228226062","full_name":"cfware/process-on-spawn","owner":"cfware","description":"Execute callbacks when child processes are spawned","archived":false,"fork":false,"pushed_at":"2024-11-13T12:31:58.000Z","size":23,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-08T00:44:31.228Z","etag":null,"topics":[],"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/cfware.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-12-15T17:48:48.000Z","updated_at":"2024-11-13T12:31:50.000Z","dependencies_parsed_at":"2024-06-18T16:59:22.004Z","dependency_job_id":"d3081013-0dde-44a8-953b-bd98594dcd6a","html_url":"https://github.com/cfware/process-on-spawn","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":"0.19999999999999996","last_synced_commit":"65e372b3e7f9f357e98f35943f4511d5ed83aef7"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fprocess-on-spawn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fprocess-on-spawn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fprocess-on-spawn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fprocess-on-spawn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfware","download_url":"https://codeload.github.com/cfware/process-on-spawn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230471175,"owners_count":18231193,"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-24T10:18:27.611Z","updated_at":"2024-12-19T17:08:51.845Z","avatar_url":"https://github.com/cfware.png","language":"JavaScript","readme":"# process-on-spawn\n\n![Tests][tests-status]\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![MIT][license-image]](LICENSE)\n\nExecute callbacks when child processes are spawned.\n\n## Usage\n\n```js\n'use strict';\n\nconst processOnSpawn = require('process-on-spawn');\nprocessOnSpawn.addListener(opts =\u003e {\n  opts.env.CHILD_VARIABLE = 'value';\n});\n```\n\n### listener(opts)\n\n* `options` \\\u003c[Object]\\\u003e\n  * `execPath` \\\u003c[string]\\\u003e The command to run.\n  * `args` \\\u003c[string\\[\\]][string]\\\u003e Arguments of the child process.\n  * `cwd` \\\u003c[string]\\\u003e Current working directory of the child process.\n  * `detached` \\\u003c[boolean]\\\u003e The child will be prepared to run independently of its parent process.\n  * `uid` \\\u003c[number]\\\u003e The user identity to be used by the child.\n  * `gid` \\\u003c[number]\\\u003e The group identity to be used by the child.\n  * `windowsVerbatimArguments` \\\u003c[boolean]\\\u003e No quoting or escaping of arguments will be done on Windows.\n  * `windowsHide` \\\u003c[boolean]\\\u003e The subprocess console window that would normally be created on Windows systems will be hidden.\n\nAll properties except `env` are read-only.\n\n### processOnSpawn.addListener(listener)\n\nAdd a listener to be called after any listeners already attached.\n\n### processOnSpawn.prependListener(listener)\n\nInsert a listener to be called before any listeners already attached.\n\n### processOnSpawn.removeListener(listener)\n\nRemove the specified listener.  If the listener was added multiple times only\nthe first is removed.\n\n### processOnSpawn.removeAllListeners()\n\nRemove all attached listeners.\n\n[npm-image]: https://img.shields.io/npm/v/process-on-spawn.svg\n[npm-url]: https://npmjs.org/package/process-on-spawn\n[tests-status]: https://github.com/cfware/process-on-spawn/workflows/Tests/badge.svg\n[downloads-image]: https://img.shields.io/npm/dm/process-on-spawn.svg\n[downloads-url]: https://npmjs.org/package/process-on-spawn\n[license-image]: https://img.shields.io/npm/l/process-on-spawn.svg\n[Object]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n[string]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type\n[boolean]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type\n[number]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Fprocess-on-spawn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfware%2Fprocess-on-spawn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Fprocess-on-spawn/lists"}