{"id":16060772,"url":"https://github.com/geerlingguy/jjg-node-ping","last_synced_at":"2025-03-18T05:30:28.410Z","repository":{"id":55145147,"uuid":"10541451","full_name":"geerlingguy/JJG-Node-Ping","owner":"geerlingguy","description":"A simple ping wrapper for Node.js which returns the latency and result of a ping to a given address.","archived":false,"fork":false,"pushed_at":"2023-07-10T23:04:08.000Z","size":21,"stargazers_count":10,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T07:12:21.189Z","etag":null,"topics":["latency","library","node","node-ping","nodejs","npm","ping"],"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/geerlingguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"geerlingguy","patreon":"geerlingguy"}},"created_at":"2013-06-07T03:05:58.000Z","updated_at":"2024-04-29T12:08:05.000Z","dependencies_parsed_at":"2022-08-14T13:20:53.793Z","dependency_job_id":null,"html_url":"https://github.com/geerlingguy/JJG-Node-Ping","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"6e8df91204d7bacad9d44d55764e2c58c092af3f"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2FJJG-Node-Ping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2FJJG-Node-Ping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2FJJG-Node-Ping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2FJJG-Node-Ping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geerlingguy","download_url":"https://codeload.github.com/geerlingguy/JJG-Node-Ping/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902293,"owners_count":20366260,"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":["latency","library","node","node-ping","nodejs","npm","ping"],"created_at":"2024-10-09T04:06:21.621Z","updated_at":"2025-03-18T05:30:27.770Z","avatar_url":"https://github.com/geerlingguy.png","language":"JavaScript","funding_links":["https://github.com/sponsors/geerlingguy","https://patreon.com/geerlingguy"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/geerlingguy/JJG-Node-Ping/master/Resources/Ping-Logo.png\" alt=\"Ping for Node.js Logo\" /\u003e\n\n# JJG Ping\n\nJJG Ping is a simple ping wrapper for Node.js which returns the latency and result of a ping to a given address.\n\nPing was created by [Jeff Geerling](http://www.lifeisaprayer.com/) of [Midwestern Mac, LLC](http://www.midwesternmac.com/) in 2013.\n\n## Installation\n\nUse NPM:\n\n    $ npm install jjg-ping\n\n## Usage\n\n    // Use the jjg-ping library.\n    var ping = require('jjg-ping');\n\n    // Ping google.com.\n    ping.system.ping('google.com', function(latency, status) {\n        if (status) {\n            // Host is reachable/up. Latency should have a value.\n            console.log('Google is reachable (' + latency + ' ms ping).');\n        }\n        else {\n            // Host is down. Latency should be 0.\n            console.log('Google is unreachable.');\n        }\n    });\n\n## Why jjg-ping?\n\nBecause npm [doesn't support namespacing](https://npmjs.org/doc/faq.html#Why-no-namespaces), and ping, node-ping, and all the other namespaces I wanted were already taken.\n\n## License\n\nJJG Ping is licensed under the MIT (Expat) license. See included LICENSE.md.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fjjg-node-ping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeerlingguy%2Fjjg-node-ping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fjjg-node-ping/lists"}