{"id":13630229,"url":"https://github.com/ourcodeworld/internet-available","last_synced_at":"2025-05-14T11:32:40.456Z","repository":{"id":48226631,"uuid":"92166143","full_name":"ourcodeworld/internet-available","owner":"ourcodeworld","description":"A module to verify if there's an active internet connection with Node.js","archived":false,"fork":false,"pushed_at":"2021-05-25T07:17:06.000Z","size":4,"stargazers_count":18,"open_issues_count":3,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-21T12:55:45.993Z","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/ourcodeworld.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}},"created_at":"2017-05-23T11:40:11.000Z","updated_at":"2023-05-03T06:46:12.000Z","dependencies_parsed_at":"2022-09-15T19:12:37.624Z","dependency_job_id":null,"html_url":"https://github.com/ourcodeworld/internet-available","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ourcodeworld%2Finternet-available","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ourcodeworld%2Finternet-available/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ourcodeworld%2Finternet-available/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ourcodeworld%2Finternet-available/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ourcodeworld","download_url":"https://codeload.github.com/ourcodeworld/internet-available/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254131668,"owners_count":22019977,"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-01T22:01:34.798Z","updated_at":"2025-05-14T11:32:39.930Z","avatar_url":"https://github.com/ourcodeworld.png","language":"JavaScript","readme":"# internet-available\n\nA module to verify if there's an active internet connection with Node.js\n\n# Installation\n\nYou can install this module through NPM using the following command in your terminal:\n\n```bash\n$ npm install internet-available --save\n```\n\n# Example\n\ninternet-available requires Promises to work correctly. It's easy to use:\n\n```javascript\nvar internetAvailable = require(\"internet-available\");\n\n// Most easy way\ninternetAvailable({\n    // Provide maximum execution time for the verification\n    timeout: 5000,\n    // If it tries 5 times and it fails, then it will throw no internet\n    retries: 5\n}).then(() =\u003e {\n    console.log(\"Internet available\");\n}).catch(() =\u003e {\n    console.log(\"No internet\");\n});\n```\n\nBut configurable too (check the docs).\n\n# Documentation\n\n[The official documentation of the project can be found in Our Code World here](http://docs.ourcodeworld.com/projects/internet-available).","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fourcodeworld%2Finternet-available","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fourcodeworld%2Finternet-available","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fourcodeworld%2Finternet-available/lists"}