use-navigator-online
Version:
React Hooks to detect when your browser is online/offline.
68 lines (67 loc) • 1.75 kB
JSON
{
"name": "use-navigator-online",
"version": "3.2.4",
"private": false,
"description": "React Hooks to detect when your browser is online/offline.",
"keywords": [
"navigator",
"window.navigator",
"react",
"react-hooks"
],
"homepage": "https://github.com/cansin/use-navigator-online#readme",
"bugs": {
"url": "https://github.com/cansin/use-navigator-online/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/cansin/use-navigator-online.git"
},
"license": "MIT",
"author": {
"name": "Cansin Yildiz",
"email": "cansinyildiz@gmail.com",
"url": "https://www.cansinyildiz.com/"
},
"main": "lib/index.cjs.js",
"module": "lib/index.esm.js",
"browser": "lib/index.umd.js",
"files": [
"lib"
],
"scripts": {
"build": "rollup --config rollup.config.js",
"dev": "rollup --config rollup.config.js --watch",
"prepare": "npm run build",
"pretest": "npm run build",
"test": "eslint . && jest"
},
"jest": {
"testEnvironment": "jsdom"
},
"devDependencies": {
"@babel/core": "^7.18.0",
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-env": "^7.18.0",
"@babel/preset-react": "^7.17.12",
"@rollup/plugin-babel": "^5.3.1",
"eslint": "^8.16.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.5.0",
"jest": "^28.1.0",
"jest-environment-jsdom": "^28.1.0",
"prettier": "^2.6.2",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"rollup": "^2.74.1"
},
"peerDependencies": {
"react": ">=16"
},
"engines": {
"node": ">=14"
}
}