{"library":"offline-detector","type":"library","category":null,"description":"offline-detector is a lightweight TypeScript library designed for robustly detecting network online/offline status exclusively within browser environments. Its current stable version is 1.1.1. The library differentiates itself by combining native browser `online`/`offline` events with intelligent network verification through configurable polling, which significantly enhances detection accuracy. It is built to be bundler-agnostic, supporting modern tools like Webpack, Vite, and Rollup, and is tree-shakable for minimal bundle size. Development is active, with recent minor and patch releases introducing features like network polling (v1.1.0) and updating Node.js engine requirements for development/testing (v1.1.1). It provides full TypeScript support, debounced state changes to prevent rapid status fluctuations, and extensive configuration options for customizing network tests and event handling.","language":"javascript","status":"active","version":"1.1.1","tags":["javascript","offline-detector","online","offline","network","connectivity","typescript","browser","is-online"],"install":[{"cmd":"npm install offline-detector","imports":["import { createOfflineDetector } from 'offline-detector';","import type { OfflineDetectorOptions } from 'offline-detector';","import type { OfflineDetector } from 'offline-detector';"]},{"cmd":"yarn add offline-detector","imports":[]},{"cmd":"pnpm add offline-detector","imports":[]}],"homepage":null,"github":"https://github.com/hiteshshetty-dev/offline-detector","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/offline-detector","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/offline-detector/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}