{"id":15499320,"url":"https://github.com/jkrup/pwatch","last_synced_at":"2025-04-22T22:44:51.113Z","repository":{"id":145964446,"uuid":"82584164","full_name":"jkrup/pwatch","owner":"jkrup","description":"Get Notifications When Processes / Jobs Complete","archived":false,"fork":false,"pushed_at":"2017-03-06T23:35:57.000Z","size":265,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-19T15:17:40.675Z","etag":null,"topics":["cli-utilities","nodejs","notifier"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jkrup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-02-20T17:29:45.000Z","updated_at":"2022-11-29T00:40:00.000Z","dependencies_parsed_at":"2023-06-01T03:45:19.505Z","dependency_job_id":null,"html_url":"https://github.com/jkrup/pwatch","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"a3c64d4c4e05cad5a50f55bc477039c73ca8c069"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkrup%2Fpwatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkrup%2Fpwatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkrup%2Fpwatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkrup%2Fpwatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jkrup","download_url":"https://codeload.github.com/jkrup/pwatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249303547,"owners_count":21247692,"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":["cli-utilities","nodejs","notifier"],"created_at":"2024-10-02T08:51:37.543Z","updated_at":"2025-04-17T02:31:41.007Z","avatar_url":"https://github.com/jkrup.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PWatch [![npm version](https://badge.fury.io/js/pwatch.svg)](https://badge.fury.io/js/pwatch)\n\nGet native notifications when your long running processes finish!\n\nRunning Database Migrations? Deploying apps? Compiling? Transfering large files? Get notified when your process has finished.\n\n![](https://github.com/mazlix/pwatch/raw/master/assets/pwatchinaction.png)\n\n## Install\n\nInstall it with [yarn](https://github.com/yarnpkg/yarn/) or npm:\n\n```\n$ npm install -g pwatch\n```\n\n## Usage\n\nAdd `pwatch` at the end of your command.\n\n```\n  pwatch \u003cpid | command\u003e\n\n\n  Commands:\n    search      [name]      Lists all processes by PID that match \"name\"\n\n\n  Examples:\n\n    – Notifies after 10 seconds\n\n      ${'$ sleep 10 | pwatch'.cyan}\n\n    – See all PID for node related processes\n\n      ${'$ pwatch search node'.cyan}\n\n    – Notify me when process 4030 ends\n\n      ${'$ pwatch 4030'.cyan}\n\n    – Run a chained process in background with a \u0026\n\n      ${'$ sleep 10 | pwatch \u0026'.cyan}\n```\n\n### Examples\n\n```\nsleep 10 | pwatch\n```\nor\n\n```\nsleep 10 \u0026\u0026 pwatch\n```\nor \n\n```\nsleep 10; pwatch\n```\n\nOptionally add a `\u0026` so pwatch runs in the background\n\n```\nsleep 10 | pwatch \u0026\n```\n\nOr if you forget to call it when running your command\n\n```\n$ scp somelargefile.tar.gz root@remotehost:~\n$ pwatch search scp\n    60132 - 0:00.20 scp somelargefile.tar.gz root@remotehost:~\n$ pwatch 60132\n```\n\nYou can even use it to be notified upon SSH tunnel closing.\n```\n$ ssh root@remotehost\n# in another shell...\n$ ps aux | grep ssh\njustink          60132   0.0  0.2  3041904  31712 s018  S+   12:15PM   0:00.20 ssh root@remotehost\n$ pwatch 60132\n```\n![](https://github.com/mazlix/pwatch/raw/master/assets/pwatch.gif)\n\nThen get notified when that process finishes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkrup%2Fpwatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjkrup%2Fpwatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkrup%2Fpwatch/lists"}