{"name":"@reach/window-size","version":"0.11.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":"ts-node --transpile-only ../../scripts/build-package $npm_package_name"},"dependencies":{"@reach/utils":"0.11.2","prop-types":"^15.7.2","tslib":"^2.0.0"},"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":"2aa6f03c5eed8c2b7525a29db1c69fe6bc540e5d","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/window-size@0.11.2","_nodeVersion":"14.9.0","_npmVersion":"lerna/3.22.1/node@v14.9.0+x64 (linux)","dist":{"integrity":"sha512-0yoiNv99GsP7+OagAD3fTdUioMl2AWcXvQih6mtQ3Mb5TuKrIwkvSo/0JV24lBZCJa42eiHuOipwIFFFs92TXQ==","shasum":"c62214ecfd6f4535f7cbc58eb729e158b97605fe","tarball":"http://registry-npm.ywwl.com/@reach/window-size/download/@reach/window-size-0.11.2.tgz","fileCount":11,"unpackedSize":17485,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTeiMCRA9TVsSAnZWagAAK8sP/R3NaF/imQVIsNRFSw6y\niGpQph1mc8esV3XC8jyiDlUgr+P6pAe2hzgCLlGKHwdq86+mi36kqDpWZHW5\no0vGgqVBHqqgMLLV92RFNXMrKvcnoo14vVXchXkGgJQg6CD1IhhXXGNoQO9+\nwna/BIkgVGL7UYP53LzVnOGy0r7WVsMawVbumPhwKDPGDpu/1SEeHf81FYe9\n6vQs8V2876Qpkm9q6M8ryoIaDsTlKHS5HXfuzSHVCdGRSGx17PUJkz8gfycI\nyLygaqV5OFmVyvk5N9bekUFYD9a+16a64ewuwpQQEKeo/767YpfM5yuGxefI\nB64YYplkFnRy7R0XJVlPME0Gi3AOCp+9ycwkwDKf1MAzFamPKoIY4U8vdear\nNCbfNCGGtT7rJPofABlqjaGqGGpmI6zYDunq8AE0sB05mzpq92Mjc0MNpib/\nlly/VUxDtuwfLcK2pj0UzAL8Zn066BmKNyQUWBR+hO6307X/8jjQCVI2OjRL\nRDhBAOvEUY9uuTCs2sKJIKRgKrbfGAGLmiHXlIuJYvgKKihCHoSuhikpS+jk\nUbGzTDz2G04Y9QWHyMgiSoXkBmjH+JdGJQa19Ww2Bfa2yZPzTzW5i4samQT9\nDQSjQof/Zmi8ML+NHirpkcEKz90E3m9X0qydK0LxoJhjNRa9qqheAFHj+CxB\nkUkk\r\n=ngtA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZYxdd2Zhz0gkrDg3j8/brwM63C1Ult33vvhqT9RfhwQIgBy7+AYV/Qi/PHh9n/ogJAkQ7cN9tsdlCVPzDov52Qlc="}],"size":4191,"noattachment":false,"key":"/@reach/window-size/-/@reach/window-size-0.11.2.tgz"},"maintainers":[{"email":"blainekasten@gmail.com","name":"blainekasten"},{"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.11.2_1598941324121_0.218691452030205"},"_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":1598941324215,"_cnpm_publish_time":1598941324215,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}