{"name":"@reach/window-size","version":"0.7.2","description":"Measure the window size in React","author":{"name":"React Training","email":"hello@reacttraining.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/reach/reach-ui.git","directory":"packages/window-size"},"scripts":{"build":"yarn clean && cross-env NODE_ENV=production tsdx build --format=cjs,esm --tsconfig tsconfig.build.json","clean":"rm -rf ./dist","compile":"cross-env NODE_ENV=production tsdx build --format=cjs,esm --tsconfig tsconfig.build.json"},"dependencies":{"prop-types":"^15.7.2"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"main":"dist/index.js","module":"dist/window-size.esm.js","typings":"dist/index.d.ts","gitHead":"96cf6c191cca0f2cbcb7ff578f15e289efeda1e2","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/window-size@0.7.2","_nodeVersion":"13.6.0","_npmVersion":"lerna/3.20.2/node@v13.6.0+x64 (linux)","dist":{"integrity":"sha512-5CWtLz/7JIihG336e/Dabkr4fwVr+7cSJIfbnFM2xoCnTDSaALVVYvrVWhwMxDvmxCSMxRA+WqVHW2qe5vN7vQ==","shasum":"9b723c29ef09434b6d741d7fd77e5df053e5d7b9","tarball":"http://registry-npm.ywwl.com/@reach/window-size/download/@reach/window-size-0.7.2.tgz","fileCount":10,"unpackedSize":16570,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGQvaCRA9TVsSAnZWagAAPKAP/jSS9jZV7SWOMX1iYIBB\n++5WUiXp1kFjjoczTqnZjN4ImA6xdpwt8pqhpW3YIJonuR1rbIr69WEOEc7c\n9KbWOq8XeOTe3cqpph4NMml8zeplbOSgUUeh2zR8mfaVf+mJkY9Ya+uZDBX0\nrcTJxrBAiqr5oeWNp0+bmZMntFFhelrIVhM4thk7pyUOrVFL815W9YIEtvwc\nI2IrCCBXLiNrS9w5MAitk2p2cDqmbiVaBP8RLVRxwJLqlbeNHDmyoGuMHogY\nWiYK5kjBAhKuR0pPTQCZtWitDzmPjWPukAycMGIDcRDsPVEBWaptn64rgHar\nEgfNkjAR5lm6M1B5W7wlPv/afqfPwc2dI9zEXZQU7pzWbfAlIWOxqYRzh0ii\nsMg5I9fCyGF9ZoNbQDhqv7t/O4oyOWZko6OtUhBqEhBOmX7Kk+xJY4U1t7u2\n+c1K9ZXjtgDg6b/TMhTy5FxKjuMV55E8phCtIvwGapJX+DzENmKr/VKhlVR+\nQbj//SZp934o2B37gSaNa5qQSWxusXtMFqOmDPpbUvgJPUzbHzPACM4Nzt7y\nKYMsQBTwGa4z71TW4tKrKZ4QZdYiLfBPezJbMTkGZbq5biohdjkUo4u4cP7l\nAq1P19TZHm9YyV4QQOPNGDCjZqlUPsVcedAzOXg7jN1eg3nBegnSwjGUDCzK\nOikm\r\n=6mwE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeW4z6lgRh01hi2v8l1Cvxn/ksCNoydglAeSiGwSuzuAIhAJzretCYedJjGPMNlMEIiwximJqajHohckmattjSWSqt"}],"size":3749,"noattachment":false,"key":"/@reach/window-size/-/@reach/window-size-0.7.2.tgz"},"maintainers":[{"email":"chance.strickland@gmail.com","name":"chancestrickland"},{"email":"npm@mjackson.me","name":"mjackson"},{"email":"rpflorence@gmail.com","name":"ryanflorence"}],"_npmUser":{"name":"mjackson","email":"npm@mjackson.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/window-size_0.7.2_1578699738401_0.5771009702567831"},"_hasShrinkwrap":false,"readme":"# @reach/window-size\n\n[![Stable release](https://img.shields.io/npm/v/@reach/window-size.svg)](https://npm.im/@reach/window-size) ![MIT license](https://badgen.now.sh/badge/license/MIT)\n\n[Docs](https://reach.tech/window-size) | [Source](https://github.com/reach/reach-ui/tree/main/packages/window-size)\n\nMeasure the current window dimensions.\n\n```jsx\nimport WindowSize, { useWindowSize } from \"@reach/window-size\";\n\nfunction Example() {\n\tconst { width, height } = useWindowSize();\n\treturn (\n\t\t<div>\n\t\t\t<p>\n\t\t\t\tLooks like a pretty{\" \"}\n\t\t\t\t{width <= 400 ? \"small\" : width >= 1000 ? \"large\" : \"normal\"} screen!\n\t\t\t</p>\n\t\t</div>\n\t);\n}\n```\n","publish_time":1578699738505,"_cnpm_publish_time":1578699738505,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}