UNPKG

@uiw/react-use-online

Version:

useOnline is a tiny, zero-dependency hook for responding to online/offline changes.

49 lines (48 loc) 994 B
{ "name": "@uiw/react-use-online", "version": "1.0.0", "description": "useOnline is a tiny, zero-dependency hook for responding to online/offline changes.", "author": "Kenny Wong <wowohoo@qq.com>", "homepage": "https://uiwjs.github.io/react-use-online", "repository": { "type": "git", "url": "https://github.com/uiwjs/react-use-online.git" }, "license": "MIT", "main": "./cjs/index.js", "module": "./esm/index.js", "files": [ "cjs", "esm", "src" ], "publishConfig": { "access": "public" }, "keywords": [ "react-use-online", "react.js", "react", "online", "network", "hook", "hooks", "reacthook", "uiw", "uiw-react", "react-component", "component", "components", "ui", "framework" ], "peerDependencies": { "react": ">=16.9.0", "react-dom": ">=16.9.0" }, "devDependencies": { "@babel/runtime": "^7.18.9", "react": "^18.2.0", "react-dom": "^18.2.0" } }