{"id":29441645,"url":"https://github.com/reinskywalker/node-pinger","last_synced_at":"2025-07-13T14:06:26.765Z","repository":{"id":303798398,"uuid":"1016578105","full_name":"reinskywalker/node-pinger","owner":"reinskywalker","description":"Dead simple stuff to ping a URL on a loop, with logging and retry support, none fancy. Useful for keeping services awake or checking if something's still alive.","archived":false,"fork":false,"pushed_at":"2025-07-09T12:45:50.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-09T13:52:41.984Z","etag":null,"topics":[],"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/reinskywalker.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,"zenodo":null}},"created_at":"2025-07-09T08:09:00.000Z","updated_at":"2025-07-09T12:47:21.000Z","dependencies_parsed_at":"2025-07-09T13:52:44.212Z","dependency_job_id":"be10c84a-1c64-4979-b87b-eea702fac7fb","html_url":"https://github.com/reinskywalker/node-pinger","commit_stats":null,"previous_names":["reinskywalker/node-pinger"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reinskywalker/node-pinger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reinskywalker%2Fnode-pinger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reinskywalker%2Fnode-pinger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reinskywalker%2Fnode-pinger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reinskywalker%2Fnode-pinger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reinskywalker","download_url":"https://codeload.github.com/reinskywalker/node-pinger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reinskywalker%2Fnode-pinger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265153236,"owners_count":23719144,"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":"2025-07-13T14:06:26.370Z","updated_at":"2025-07-13T14:06:26.750Z","avatar_url":"https://github.com/reinskywalker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"  \n# Node Pinger\n\nNode.js script to ping a specific URL at defined intervals with optional retry and logging.\n\n## Features\n\n- Ping any HTTP/HTTPS endpoint repeatedly\n- Control request interval and total duration\n- Retry failed requests with delay\n- Log results to timestamped files\n- No external dependencies except `axios`\n\n## Requirements\n\n- Node.js 14+\n\n## Installation\n\n```bash\ngit clone https://github.com/reinskywalker/node-pinger.git\ncd node-pinger\nnpm install\n````\n\n## Usage\n\nRun the pinger with arguments:\n\n```bash\nnpm run ping -- --url=\"https://example.com\" --interval=10 --duration=0 --retries=3 --retryDelay=5 --expectStatus=200 --log=true\n```\n\n## Arguments\n\n| Flag             | Description                                                      |\n| ---------------- | ---------------------------------------------------------------- |\n| `--url`          | Target URL to ping (required)                                    |\n| `--interval`     | Delay between requests (in seconds)                              |\n| `--duration`     | How long to keep pinging (in seconds). Use `0` to run forever    |\n| `--retries`      | Number of times to retry a failed request or non-matching status |\n| `--retryDelay`   | Delay between retries (in seconds)                               |\n| `--expectStatus` | Expected HTTP status code (e.g. `200`)                           |\n| `--log`          | Whether to write output to log file (`true` or `false`)          |\n\n## Output\n\n* Console will show timestamped result of each request\n* If logging is enabled, log file is saved under `src/logs/` with format:\n\n  ```\n  YYYY-MM-DD_01.log\n  YYYY-MM-DD_02.log\n  ```\n\nEach run will generate a new log file with incremented index in src\\logs.\n\n## Example\n\n```bash\nnpm run ping -- --url=\"https://reynaldi.dev/\" --interval=10 --duration=0 --retries=3 --retryDelay=5 --expectStatus=200 --log=true\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freinskywalker%2Fnode-pinger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freinskywalker%2Fnode-pinger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freinskywalker%2Fnode-pinger/lists"}