{"name":"@reach/window-size","version":"0.8.0","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":"7702c46373c7f11adc21184e7def9977203e9326","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/window-size@0.8.0","_nodeVersion":"13.7.0","_npmVersion":"lerna/3.20.2/node@v13.7.0+x64 (linux)","dist":{"integrity":"sha512-/6x9nOhOvW32K/I0s6N0Z9KX+DK4HGeBvk3EbU8dGsf8vEcMrr/WFe6izqBWk3YYD+ShWtC9afU6L9rE4+Om4g==","shasum":"db58dccffd9981837ddedc793f749ce6c0d73d09","tarball":"http://registry-npm.ywwl.com/@reach/window-size/download/@reach/window-size-0.8.0.tgz","fileCount":11,"unpackedSize":17570,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeM145CRA9TVsSAnZWagAAH2gP/jjyWQassqgiTAPBqN8t\n+Imbt0WwM4xACvD4wPfJySSlYaUHxmRtmABN/vVQkdaEAgM5Icxcdt8X3rP4\nOoJXb2roBxyJIo40Gvrntzgx0/V1l/3mMpLoeDiP4A5f04op8Im+jb4xpUzo\nycOcc63H0uMSzdZDdV7Luc1H2EJ/Ktv/lD2abO6R8ARg6Xn+1Kc7B+/P9dwB\n5Xj/RZfj7ImQTeN8iPzH4DrUCqxNFYX2UQq7zHaVCMKA7jOMNYOSDpZ8vsWb\nQe42oi2Cp9TKT+5lTAbGHh38zMTwI5HAyh2Iw9gA8DIIaIAV/3nbZHdTfvyF\nNBQCQNXBESrk1f9Qao6o8fEe60+7zzP9z2qf6m28pGDO4nbNukI1ClCSjxic\nU8LU1EBudmO3Wq+35WQO78wP9YxwKmtQl3XeBOmTvW8ZDVDjGQ5BkIeMV6pA\nX/YDvHsfEj6RkSu9sAuCQ2wbpN+bZNT7MbxTIP4/nDQ0ATxpD5G6Lliu/hE5\nXFCFcQr90KOGmfBGh5lW3Y4Jl+4SBEACX8A1aw0CkLmULyQpaDNFvCKtwRBP\nx9PYtqKIbuxb7SunfJUgUAu2DQHyzl0BR+g+IFovZCLzX0YvrT+Yz9VeUuyt\nBjyg1mWud4x+HwOQJdn9iUhfPEJe1CYg7oNDRR+XPTOV4yfnbww5M/EcKtiJ\njZ+Y\r\n=S0c0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKj9kfxMiMs+roZJLH+13I0tnfuo5XXNjKf6O794hY2gIhAJ+3WrXZeH/EhK5mLjW+nITLpoztlUdBFxLeZVTCwGpz"}],"size":4072,"noattachment":false,"key":"/@reach/window-size/-/@reach/window-size-0.8.0.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.8.0_1580424760732_0.7539651996187353"},"_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":1580424760887,"_cnpm_publish_time":1580424760887,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}