{"_id":"@ac-hooks/use-connectivity","_rev":"4-95e79828e2c4504a5df8d0f8d087b520","name":"@ac-hooks/use-connectivity","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.2":{"name":"@ac-hooks/use-connectivity","version":"0.0.2","author":{"name":"Abdullah Ceylan","email":"ben@abdullahceylan.com"},"description":"A custom React Hook that provides internet connectivity status using browsers' online/offline events.","homepage":"https://github.com/abdullahceylan/ac-hooks/use-connectivity/#readme","repository":{"type":"git","url":"git+https://github.com/abdullahceylan/ac-hooks.git"},"bugs":{"url":"https://github.com/abdullahceylan/ac-hooks/issues"},"license":"MIT","main":"index.js","scripts":{"format":"prettier \"./**/*.js\" --config ../../.prettierrc.js --loglevel warn --write","lint":"eslint \"./**/*.js\" --config ../../.eslintrc.js","prepublishOnly":"yarn format && yarn lint"},"dependencies":{"@abdullahceylan/eslint-config-react":"^1.1.0","@abdullahceylan/prettier-config":"^1.1.0","babel-eslint":"^10.0.1","eslint-plugin-import":"^2.14.0","eslint-plugin-prettier":"^3.0.0","eslint-plugin-react-hooks":"^1.5.0"},"peerDependencies":{"eslint":"^5.15.1","prettier":"^1.14.3"},"publishConfig":{"access":"public"},"gitHead":"0aa5af63b236c8fdf30675783d55fea0f74159a8","_id":"@ac-hooks/use-connectivity@0.0.2","_nodeVersion":"11.12.0","_npmVersion":"lerna/3.10.7/node@v11.12.0+x64 (darwin)","dist":{"integrity":"sha512-FSCodo0rhQ6wQ3TLg956UqOpALvsXqJHqcxxDR8MhrKyMyz6NCqwPjgGw+4VzpynwCh3ZzxSGsgKwRJ8IzOf2Q==","shasum":"aaeffd43b13a532b044df2ea442c54e6b07b9421","tarball":"https://registry.npmjs.org/@ac-hooks/use-connectivity/-/use-connectivity-0.0.2.tgz","fileCount":4,"unpackedSize":4063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcp+gYCRA9TVsSAnZWagAAsKUP/iig/qnZHkPXPhs/LfCR\ncoinPypEouPA/entQ7IGOsm+6Aa9YGl/aHEbFWeMrQkazTWOM6eM4RLA4S91\ndB8HT/5TiAZGLx/OXl+bkionjPwK5lChLnDTWcp0JPvfh0OGHqBNrsVxclA1\n8rJuqJGOt6K6MZa0XwpFMuj+8zgndWSpdrT4iETX6NAllbh8xJ9Z+E66H2uC\nMsj20vl1jn8kfcGqxBdWdL5A43YJYICHELo2dnYZ7saFxSHSG1YYNqgXIk3r\nVFC91Y7UJV5QRhec+xLdFatCgPCrePCu89HVFxWPpb+ycS28C08bt1ByhpFE\n+5EByXjHdP8IJ382iKlaFqUKfizMCw/mkS5hQR816w5iUlQYCCL2R7wEOJ0x\njENgbdDhdan+QMNGnyRwfj92VqU6S4Qp5B6HVwjjyVf//bo6TlY63rP1RgNX\nqaX/PY7U1HE4hC5VVVHK2Yy0oie5+XbIZ4llFWzl7HoLAYNK2KYJW+bjnUl2\nBP7BPcevkGoHtUdNbEvoax/0wd20zlpbY1vsm8BthnfKeLX2aChR8UXw6nFM\nmvrVUc+Gzd7/6m6hCRraAe8HYOi4o5sWOOAQAWWtVIl76fEakVOJc4r9ID6A\nm5nWzjBhaN1DJd+2qeIW6eO0u9cNpV39ra+NzZNf70ReyK/PlJNqlk00p2iF\nfsxq\r\n=NITI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEx/OPH/yB8qod1tceaQEAsfP0ffXfACkeRKipzflRqDAiEA2ujw2+oXxcbsqam8YtjqG33cipFe32pjEZwuPvaHDnk="}]},"maintainers":[{"name":"abdullahceylan","email":"abdullah@ceinteraktif.net"}],"_npmUser":{"name":"abdullahceylan","email":"abdullah@ceinteraktif.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-connectivity_0.0.2_1554507799140_0.023211188799526106"},"_hasShrinkwrap":false},"0.0.3":{"name":"@ac-hooks/use-connectivity","version":"0.0.3","author":{"name":"Abdullah Ceylan","email":"ben@abdullahceylan.com"},"description":"A custom React Hook that provides internet connectivity status using browsers' online/offline events.","homepage":"https://github.com/abdullahceylan/ac-hooks/use-connectivity/#readme","repository":{"type":"git","url":"git+https://github.com/abdullahceylan/ac-hooks.git"},"bugs":{"url":"https://github.com/abdullahceylan/ac-hooks/issues"},"license":"MIT","main":"src/index.js","scripts":{"format":"prettier \"./**/*.js\" --config ../../.prettierrc.js --loglevel warn --write","lint":"eslint \"./**/*.js\" --config ../../.eslintrc.js","prepublishOnly":"yarn format && yarn lint"},"dependencies":{"@abdullahceylan/eslint-config-react":"^1.1.0","@abdullahceylan/prettier-config":"^1.1.0","babel-eslint":"^10.0.1","eslint-plugin-import":"^2.14.0","eslint-plugin-prettier":"^3.0.0","eslint-plugin-react-hooks":"^1.5.0"},"peerDependencies":{"eslint":"^5.15.1","prettier":"^1.14.3"},"publishConfig":{"access":"public"},"gitHead":"cc2c4223de08c733113952702c7a3e675dca1bd3","_id":"@ac-hooks/use-connectivity@0.0.3","_nodeVersion":"11.12.0","_npmVersion":"lerna/3.10.7/node@v11.12.0+x64 (darwin)","dist":{"integrity":"sha512-WurmlZzPZvpzZY0acKv9H7ddHy07woZfDDP2c38rSJeXHspZW4TJBCsR+XNFt6LLy3K2wvYfpcGFAXBR/dPRYw==","shasum":"90650a10f34926a9eee44734d1a5fd82797d3068","tarball":"https://registry.npmjs.org/@ac-hooks/use-connectivity/-/use-connectivity-0.0.3.tgz","fileCount":4,"unpackedSize":4067,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcp+nECRA9TVsSAnZWagAAa/gP/j6x8qpcXfYN/vnnJW+X\npXr3CSiReosndrKZhf1NkROwTvTU5huYzfPUTLp7KcPh9sIj02J9P+KgplFH\nmyZ7tDVZx7fRIkT7lIKHnVPZ/JU9+7S/TghphlBCOHXbRNtnYPT890iE1A22\nxrnbIy5p6uwF8OBJZ3s7EVYqOMPZy/zGIgtBtt9bbmCK8yaZZ3nn2dnLpyQt\nNpxsve2Sx1zFd5mEZB6tfrT1EWK2snFD1fQ1EOcOpyJYIcADSBQc9z0R/M/k\nUWxgpKQpOnSgGiec0kz+Bbpzn/2o4qPXsRSFsDw9L8515XiVUOpEQD9flLHo\nRWks53YNVaYg8tXO6wkTeWBr901Tj+15E4YbRtWK+o4IWgJzw+ulGKXnEZcG\nkn7deCFw43u7EUwJT5A/kgg9/POO8YDqCIEC7vtfvSb1I3jCCWYHsgpS0K7Y\nc7kPIcVoaE7SZhx+CYXJE+oqNPBdDU1QR6a+hpHqI5yt9NKL0gdejPp7fZpf\nVMJRiWbkBeF2x1+WB4bgJnFRYeAA89ybLB/HJ+RgFttETiFqlp/qDwvDJgHX\njflSdFB6y5f5ds35gb5UtjmcERfcEtzUjha3xAYYjgkDWU55fbATMqXcpczD\nZ0Ip6dR/owd7DLRaQRl1V94XU5BXQYskxlBPTxWeh2l7SHu0KnQyrE8qqWPQ\nKWAk\r\n=ZNqu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDnkcgnbCWpPCwEktKWg4h6+UgVcoyooenA/eFrNS+zRAiAjOwRLmYZW+LSDPtoBirJkPEXM8VTxujFDAYHCsC+7Pg=="}]},"maintainers":[{"name":"abdullahceylan","email":"abdullah@ceinteraktif.net"}],"_npmUser":{"name":"abdullahceylan","email":"abdullah@ceinteraktif.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-connectivity_0.0.3_1554508227924_0.8060217827357881"},"_hasShrinkwrap":false},"0.0.4":{"name":"@ac-hooks/use-connectivity","version":"0.0.4","author":{"name":"Abdullah Ceylan","email":"ben@abdullahceylan.com"},"description":"A custom React Hook that provides internet connectivity status using browsers' online/offline events.","homepage":"https://github.com/abdullahceylan/ac-hooks/use-connectivity/#readme","repository":{"type":"git","url":"git+https://github.com/abdullahceylan/ac-hooks.git"},"bugs":{"url":"https://github.com/abdullahceylan/ac-hooks/issues"},"license":"MIT","main":"src/index.js","scripts":{"format":"prettier \"./**/*.js\" --config ../../.prettierrc.js --loglevel warn --write","lint":"eslint \"./**/*.js\" --config ../../.eslintrc.js","prepublishOnly":"yarn format && yarn lint"},"dependencies":{"@abdullahceylan/eslint-config-react":"^1.1.0","@abdullahceylan/prettier-config":"^1.1.0","babel-eslint":"^10.0.1","eslint-plugin-import":"^2.14.0","eslint-plugin-prettier":"^3.0.0","eslint-plugin-react-hooks":"^1.5.0"},"peerDependencies":{"eslint":"^5.15.1","prettier":"^1.14.3"},"publishConfig":{"access":"public"},"gitHead":"6c7196394c22cf940bc27c4a2fbea89ea68376b3","_id":"@ac-hooks/use-connectivity@0.0.4","_nodeVersion":"11.12.0","_npmVersion":"lerna/3.10.7/node@v11.12.0+x64 (darwin)","dist":{"integrity":"sha512-UrAz9u1YAbDVBJq8N+c4q77ZeGcsQWcuoVVa1AujhD7I1dyovNK1CbqmGtKcILCpXmu1/ocKvBMf7mWyf1nzJA==","shasum":"4cb92868af5f305cd0e29180f9a7e6f00598e91c","tarball":"https://registry.npmjs.org/@ac-hooks/use-connectivity/-/use-connectivity-0.0.4.tgz","fileCount":4,"unpackedSize":4049,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcp+vOCRA9TVsSAnZWagAAMz0P/0y6teOyzTvgaWSapMq2\ny9whKStPWB7/SHMbU01aIBELpJRbJT5fnLPygT2xMMCO5iQzddZ7KyblivY8\nd33m0E1SI1gQb8tycXCF0tVH/qX/2Mt7Q7UxiJfMtIOJcO75xEi+cE2Siy+M\nITrQb+TKIdmZcDga4zk0ivWfF3etHXT6UfDhO7WSwyGKk7eeBfEkfmhlXtyK\nt+WzQ2dxdZvqOegJngrwmwXxsGflgaQhzARh5lBolaiPEHg8XWbCPhBchgBD\nKmjXNisqJQjtk5jP6vlaMWRy0pW1IxV6BU+pjoV3C0U894Pg4TAhmnSVxImb\nDhMN90ZeWAzjkimgE7UW+gt+e+OpXWNEwnVplPS8jL7Fq0xWSj2BMOoYHtoC\ngCytQRpeyj8Nuzz6ZZP7J4CTKY40nu5Ftix6EF+HY+BVA2kMT7SKHV2K/irv\nAGeAG0wzKJIp0DvI0uIKYsRB9rXG41E6tDsrZLrNNVvqGOuEg+SYNRpGZuNQ\noLiI/hf1FS3WX9n8T9IET+HSoD1AKOTiLhBhYvvM1eAc1hQCY8+QBWV+EhCC\nLSb5Tjel2MDVqGFF0cfBPOyOpaBH47UFdkhNgXtums3TZPvj1+ECKXsEvgvZ\n9BfVThHb4O8Wb/8c2ev/705iXpqnReFL4elhLXzYKb4hyIxAFzLMXFngCcjH\nAZCU\r\n=ILXh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIACs5ewXC4B7d0ifxM7/U4bj3/pOR7aNdoBZvGZF1sg6AiBwDsxA6MfJ+Jtw+jfrdsFMv+mTpSi5czE8hFOSO7XDQQ=="}]},"maintainers":[{"name":"abdullahceylan","email":"abdullah@ceinteraktif.net"}],"_npmUser":{"name":"abdullahceylan","email":"abdullah@ceinteraktif.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-connectivity_0.0.4_1554508749989_0.6734728778456252"},"_hasShrinkwrap":false},"0.0.5":{"name":"@ac-hooks/use-connectivity","version":"0.0.5","author":{"name":"Abdullah Ceylan","email":"ben@abdullahceylan.com"},"description":"A custom React Hook that provides internet connectivity status using browsers' online/offline events.","homepage":"https://github.com/abdullahceylan/ac-hooks/#readme","repository":{"type":"git","url":"git+https://github.com/abdullahceylan/ac-hooks.git"},"bugs":{"url":"https://github.com/abdullahceylan/ac-hooks/issues"},"license":"MIT","main":"src/index.js","scripts":{"format":"prettier \"./**/*.js\" --config ../../.prettierrc.js --loglevel warn --write","lint":"eslint \"./**/*.js\" --config ../../.eslintrc.js","prepublishOnly":"yarn format && yarn lint"},"dependencies":{"@abdullahceylan/eslint-config-react":"^1.1.0","@abdullahceylan/prettier-config":"^1.1.0","babel-eslint":"^10.0.1","eslint-plugin-import":"^2.14.0","eslint-plugin-prettier":"^3.0.0","eslint-plugin-react-hooks":"^1.5.0"},"peerDependencies":{"eslint":"^5.15.1","prettier":"^1.14.3"},"publishConfig":{"access":"public"},"gitHead":"3375da975dfe2fdfcb10516dc4d9f2b14dbfb08d","_id":"@ac-hooks/use-connectivity@0.0.5","_nodeVersion":"11.12.0","_npmVersion":"lerna/3.10.7/node@v11.12.0+x64 (darwin)","dist":{"integrity":"sha512-ogYC0NLVGsasjp0SIju4zJzWGDCEyVRvNSHObDM2fHxkPrC2PqrGrCdBMM7/C5bBt/kpIW7Tu482EO3wP8tjUw==","shasum":"10b4c2646493bd4b3beb5a540d8cccadc5039ba9","tarball":"https://registry.npmjs.org/@ac-hooks/use-connectivity/-/use-connectivity-0.0.5.tgz","fileCount":4,"unpackedSize":4147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcp+1LCRA9TVsSAnZWagAALDwP/RVBuwxaUR+0Mx7BOk8X\n64hUG2tlmQKGygpZTITXErAapIZJYGW9rWm6s3Ij5ZcNoJo0jYL/5kz0vx4y\nvPQmkF/IfJDJ2K9M6N1PW+T1ZPpfLFPlNR5KeQH2pW1u8VCO25AKh0u5z2KW\nYq0XQmhgBuRocXFRmAPR+nIPxBj9SRE+XFKphOlFPw6L+TfxBNtSYrucK6rZ\n3Uc40RRZKJVd3m8gNWc96S6C0hCsH1qRFldF9u9Ur1dMmP2Afd4A8JGNG7eG\nqIzrbrwVc7kudyFGmeWYmN+zaQOCInQueftw4TyyPqfFb/uOFvenUO890Xtt\nw46cQO5AROhLDboKkcReHOaMwngs4QKNZE97VNdST9e5zLoYoyZSj3ZRYWFu\nsC08QMggajwmox1v+pqXEttPpLUun2T35f0EXw9vi3UkBGVK1EEjhdVIizaF\nqSDfqrXKgjVQhKhSv9xmjTJIRomrNWfDDMB5IImPuzhfq5muumlTupF0cxOQ\nstFv45kA7Hmq8VCwiBwbvwDI3XbsmANDRNriidN8qHFi98rrNiI7sau1fhw0\nzBEG6y0uZZFB0Le2R6Cna2fc4BvCCs3eWaN1xWioVzDWM0rYjywAPcIz0RX4\n38EjWJmT7jGNnJ3AsDKlY4vEW2N4tvFD2PIj4GcvdxmJi1Ze97MhvqASzA9C\nrDfc\r\n=ZSm9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbwMayJilT5SQSIQNhW0FJudCpwC6StJ/vYG/pljvxvgIgCD2BcwZrFr/f9JlUKLWjiGldHNMNU72dzVtwbTgFioI="}]},"maintainers":[{"name":"abdullahceylan","email":"abdullah@ceinteraktif.net"}],"_npmUser":{"name":"abdullahceylan","email":"abdullah@ceinteraktif.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-connectivity_0.0.5_1554509129985_0.014254059626378268"},"_hasShrinkwrap":false}},"time":{"created":"2019-04-05T23:43:18.952Z","0.0.2":"2019-04-05T23:43:19.306Z","modified":"2022-04-04T11:04:38.646Z","0.0.3":"2019-04-05T23:50:28.119Z","0.0.4":"2019-04-05T23:59:10.150Z","0.0.5":"2019-04-06T00:05:30.254Z"},"maintainers":[{"name":"abdullahceylan","email":"abdullah@ceinteraktif.net"}],"description":"A custom React Hook that provides internet connectivity status using browsers' online/offline events.","homepage":"https://github.com/abdullahceylan/ac-hooks/#readme","repository":{"type":"git","url":"git+https://github.com/abdullahceylan/ac-hooks.git"},"author":{"name":"Abdullah Ceylan","email":"ben@abdullahceylan.com"},"bugs":{"url":"https://github.com/abdullahceylan/ac-hooks/issues"},"license":"MIT","readme":"# @ac-hooks/use-connectivity\n\nA custom React Hook that provides internet connectivity status using browsers' online/offline events.\n\n[![npm version](https://badge.fury.io/js/%40ac-hooks%2Fuse-connectivity.svg)](https://badge.fury.io/js/%40ac-hooks%2Fuse-connectivity)\n\n## Installation\n\n```bash\n$ npm i @ac-hooks/use-connectivity\n```\n\nor\n\n```bash\n$ yarn add @ac-hooks/use-connectivity\n```\n\n## Usage\n\nHere is a basic usage:\n\n```js\nimport useConnectivity from '@ac-hooks/use-connectivity';\n\nconst { isOnline } = useConnectivity();\n\nif (isOnline) {\n  // you're back!\n} else {\n  // oh no! I can't see you!\n}\n```\n\n## How to test\n\nYou can check it toggling the `Offline` checkbox in the `Network` pane of your `developer tools`.\n\n## Live demo\n\nYou can view/edit the sample code above on CodeSandbox.\n\n[![Edit demo app on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/j39z2m23z5)\n\n## Parameters\n\nThis hook doesn't accept any parameter.\n\n## Return\n\n| Parameter   | Type          | Description |\n| :---------- | :-------------|:---------------------- |\n| `isOnline`  | bool          | Whether you are online or not|\n\n\n## License\n\n**[MIT](LICENSE)** Licensed\n\nContributions of any kind welcome!\n","readmeFilename":"README.md"}