{"id":26677901,"url":"https://github.com/lestoni/cpcycle","last_synced_at":"2025-10-24T15:33:23.707Z","repository":{"id":74347635,"uuid":"154935573","full_name":"lestoni/cpcycle","owner":"lestoni","description":"Observe Child Processes life cycle events","archived":false,"fork":false,"pushed_at":"2018-10-31T18:06:34.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-15T10:57:05.800Z","etag":null,"topics":["child-process","ipc","notification","trace"],"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/lestoni.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}},"created_at":"2018-10-27T06:56:45.000Z","updated_at":"2023-02-02T20:35:08.000Z","dependencies_parsed_at":"2023-04-13T09:33:32.323Z","dependency_job_id":null,"html_url":"https://github.com/lestoni/cpcycle","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":0.08333333333333337,"last_synced_commit":"73af60d0c42380b5ac4d1f7c79b9a65086aec677"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lestoni%2Fcpcycle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lestoni%2Fcpcycle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lestoni%2Fcpcycle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lestoni%2Fcpcycle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lestoni","download_url":"https://codeload.github.com/lestoni/cpcycle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245591582,"owners_count":20640692,"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":["child-process","ipc","notification","trace"],"created_at":"2025-03-26T05:14:19.052Z","updated_at":"2025-10-24T15:33:18.645Z","avatar_url":"https://github.com/lestoni.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cpcycle\n\nSmall Utility To Observe NodeJS Child Processes life cycle events using notifications.\n\n![Notification Screenshot](https://raw.githubusercontent.com/lestoni/cpcycle/master/assets/notification.png)\n\n## Usage\n\n```\n  npm i cpcycle\n```\n\n```\n  const childProcess = require(\"child_process\");\n  const cpcycle = require(\"cpcycle\")(/*Options*/);\n\n  let shell = cpcycle(childProcess.spawn, /*Optional Name*/);\n\n  shell(\"echo\", [\"it works\"])\n    .stdout.on(\"data\", (data)=\u003e {\n      console.log(data.toString())\n    })\n```\n\n## API\n\n### CPCYCLE(/*Options = {}*/)\n\nInitialize Cycple\n\nOptions\n\n- `trace`: true/false - Turn on/off tracing\n- `events`: [\"Close\", \"Stdout\"] - Events to track\n\n### cpcycle(ChildProcess.Method, /*Optional name*/)\n\nWrap a child process method and pass an optional name to identify it via notification\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flestoni%2Fcpcycle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flestoni%2Fcpcycle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flestoni%2Fcpcycle/lists"}