{"id":13523886,"url":"https://github.com/simonecorsi/pm2-process-events","last_synced_at":"2026-01-08T07:05:24.855Z","repository":{"id":64469420,"uuid":"567186294","full_name":"simonecorsi/pm2-process-events","owner":"simonecorsi","description":"Get all PM2 process events","archived":false,"fork":false,"pushed_at":"2024-09-28T15:39:41.000Z","size":3855,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-20T00:34:07.937Z","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/simonecorsi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-17T08:58:09.000Z","updated_at":"2024-09-28T15:39:44.000Z","dependencies_parsed_at":"2023-12-25T19:52:06.819Z","dependency_job_id":"97b8d7f1-906f-4888-a9a5-59b68db21d0a","html_url":"https://github.com/simonecorsi/pm2-process-events","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":"simonecorsi/scdev-npm-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonecorsi%2Fpm2-process-events","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonecorsi%2Fpm2-process-events/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonecorsi%2Fpm2-process-events/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonecorsi%2Fpm2-process-events/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonecorsi","download_url":"https://codeload.github.com/simonecorsi/pm2-process-events/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241763766,"owners_count":20016161,"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-08-01T06:01:04.757Z","updated_at":"2026-01-08T07:05:24.752Z","avatar_url":"https://github.com/simonecorsi.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# pm2-process-events\n\n\u003e Emits all process events from pm2 unix socket\n\nThis packages is used to asyncronously emit all pm2 process events.\n\n\u003c!-- toc --\u003e\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Options](#options)\n- [Contributing](#contributing)\n- [License](#license)\n- [Contact](#contact)\n\n\u003c!-- tocstop --\u003e\n\n## Installation\n\n```sh\nnpm i --save pm2-process-events\n# OR\nyarn add pm2-process-events\n```\n\n\u003c!-- USAGE EXAMPLES --\u003e\n\n## Usage\n\n```js\nimport Pm2ProcessEvents from 'pm2-process-events';\n\nconst pm2Events = new Pm2ProcessEvents(\n  // pm2.sock location, defaults to:\n  `${process.env.HOME}/.pm2/pub.sock`\n);\n\npm2Events.on('*', ({ namespace, payload }) =\u003e {\n  console.log(namespace, payload);\n});\n```\n\nYou can filter events using `wildcards` matching, eg: `log:*`\n\n```ts\n// data format\n{\n  event: string;\n  payload: any;\n}\n```\n\n## Options\n\n\u003c!-- CONTRIBUTING --\u003e\n\n## Contributing\n\nProject is pretty simple and straight forward for what is my needs, but if you have any idea you're welcome.\n\nThis projects uses [commitlint](https://commitlint.js.org/) with Angular configuration so be sure to use standard commit format or PR won't be accepted.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'feat(scope): some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003c!-- LICENSE --\u003e\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n\u003c!-- CONTACT --\u003e\n\n## Contact\n\nSimone Corsi - [@im_simonecorsi](https://twitter.com/im_simonecorsi)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonecorsi%2Fpm2-process-events","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonecorsi%2Fpm2-process-events","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonecorsi%2Fpm2-process-events/lists"}