{"id":13604342,"url":"https://github.com/andrelmlins/svelte-internet-connection","last_synced_at":"2025-07-14T18:33:32.371Z","repository":{"id":40775018,"uuid":"255202002","full_name":"andrelmlins/svelte-internet-connection","owner":"andrelmlins","description":"Internet connection detector to Svelte","archived":false,"fork":false,"pushed_at":"2023-01-06T03:17:06.000Z","size":600,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-22T19:05:50.858Z","etag":null,"topics":["detector","internet-connection","offline","online","svelte"],"latest_commit_sha":null,"homepage":"https://svelte-internet-connection.netlify.com/","language":"Svelte","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/andrelmlins.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":"2020-04-13T01:15:34.000Z","updated_at":"2023-05-16T12:00:23.000Z","dependencies_parsed_at":"2023-02-05T05:01:03.478Z","dependency_job_id":null,"html_url":"https://github.com/andrelmlins/svelte-internet-connection","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fsvelte-internet-connection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fsvelte-internet-connection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fsvelte-internet-connection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fsvelte-internet-connection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrelmlins","download_url":"https://codeload.github.com/andrelmlins/svelte-internet-connection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249135778,"owners_count":21218365,"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":["detector","internet-connection","offline","online","svelte"],"created_at":"2024-08-01T19:00:43.851Z","updated_at":"2025-04-15T18:55:20.248Z","avatar_url":"https://github.com/andrelmlins.png","language":"Svelte","funding_links":[],"categories":["UI Componentes"],"sub_categories":["Comunidade Global"],"readme":"# Svelte Internet Connection\n\n[![npm version](https://badge.fury.io/js/svelte-internet-connection.svg)](https://www.npmjs.com/package/svelte-internet-connection) \u0026bull; [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/andrelmlins/svelte-internet-connection/blob/master/LICENSE) \u0026bull; [![Build Status](https://travis-ci.com/andrelmlins/svelte-internet-connection.svg?branch=master)](https://travis-ci.com/andrelmlins/svelte-internet-connection) \u0026bull; [![Netlify Status](https://api.netlify.com/api/v1/badges/364c1465-8483-410d-9ffd-db4a6b09134e/deploy-status)](https://app.netlify.com/sites/svelte-internet-connection/deploys)\n\nInternet connection detector to Svelte\n\n## Installation\n\n```\nnpm i svelte-internet-connection\n// OR\nyarn add svelte-internet-connection\n```\n\n\u003cem\u003eNote: to use this library in sapper, install as devDependency. See the [link](https://github.com/sveltejs/sapper-template#using-external-components).\u003c/em\u003e\n\n## Demo [Link](https://svelte-internet-connection.netlify.com/)\n\nLocal demo:\n\n```\ngit clone https://github.com/andrelmlins/svelte-internet-connection.git\ncd svelte-internet-connection\nnpm install \u0026\u0026 npm run dev\n```\n\n## Examples\n\nAn example of how to use the library:\n\n```js\n\u003cscript\u003e\n  import InternetConnection from \"svelte-internet-connection\";\n\u003c/script\u003e\n\n\u003cInternetConnection let:status\u003e\n  Status: {status}\n\u003c/InternetConnection\u003e\n```\n\n## Events\n\n| Prop   | Type | Description                 |\n| ------ | ---- | --------------------------- |\n| change | func | Call with change connection |\n\n## Slot Properties\n\n| Prop    | Type   | Description                     |\n| ------- | ------ | ------------------------------- |\n| status  | string | Connection status               |\n| online  | bool   | Tells if there is a connection  |\n| offline | bool   | Tells if there is no connection |\n\n## NPM Statistics\n\nDownload stats for this NPM package\n\n[![NPM](https://nodei.co/npm/svelte-internet-connection.png)](https://nodei.co/npm/svelte-internet-connection/)\n\n## License\n\nSvelte Internet Connection is open source software [licensed as MIT](https://github.com/andrelmlins/svelte-internet-connection/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrelmlins%2Fsvelte-internet-connection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrelmlins%2Fsvelte-internet-connection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrelmlins%2Fsvelte-internet-connection/lists"}