{"name":"@reach/window-size","version":"0.9.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":"ts-node ../../scripts/build"},"dependencies":{"@reach/utils":"^0.9.0","prop-types":"^15.7.2","tslib":"^1.10.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":"0c789bb48554bf13c62dd09210ebdf2f9af33d30","bugs":{"url":"https://github.com/reach/reach-ui/issues"},"homepage":"https://github.com/reach/reach-ui#readme","_id":"@reach/window-size@0.9.0","_nodeVersion":"13.11.0","_npmVersion":"lerna/3.20.2/node@v13.11.0+x64 (linux)","dist":{"integrity":"sha512-66a/K++Wz8PP15LBdegxFGI6xg+epfEKgSQpP1P1VWKl1w75mIYP/GLfdgV9YHprs94qoqBENpbpHPbJfPFqrA==","shasum":"8933876d9354d8dae4bfe88e5a3eb29de9a7bd31","tarball":"http://registry-npm.ywwl.com/@reach/window-size/download/@reach/window-size-0.9.0.tgz","fileCount":11,"unpackedSize":17843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJebCcoCRA9TVsSAnZWagAA4tsQAJhJLtF4N+dxiX8pPNyJ\nog+Ly+fJ9j1DzVtJE1U+MZBeIz329q8S/yNYg9+2cyJ7dCzC8SgSrD4IpSVP\nxa+Y10OhpYieBAtOqw36UjtIX4bcDfvVojtfN2ZsKVvoSZQ+SkqcCJwniJmi\n11Ii1A3M1tb1YTLn0ISEK07bS6CypIwtjXMOGXXdmjmXPnK/ZucPUwVWadzk\n4aQYGYXauk9eddeRkB7LEpkhPV57vRx5BZ9bxn9pS4XNMRfuWs3OuSwC+C6f\nRb8XkLmdGCKEyndswRS87miNITKWjVUKTmrqszeFxwKgk0HQRxzaQ2MoixQt\nUYqYEZJxg89CdSoVi0jKI6v1XPNi/r/z10p6Z8zy0hE53NpK3oFLkL1n+eU5\ntHJFQR/lB6INZwg2DnCYNoKVG1OPPD/PbAv5cgiByZZqQOEREaO9jmP+ty1n\nCDcljk16/AJ5Cc1uYefArgDQYBLUS5R0bqdgfLIoDKSUgeIvSJZdqRzQXGNP\nCiIgbFb6oqdtyy96JuwWPgXh/YcSmoJuKp3h8FMXeekd7g1lxLosFv9JaVCd\n+EFBCYQECM23w5bEqx03sau7sy/h/sAJiW4GJghYoTIRKGPaGkGro16m7nbt\n5Lnck9ZZbMvf9GGVx4LhYtW8qeYBYi2ypkCk/MYwOSWRQFmvbgqD7L6Ygl1Q\nMm3Q\r\n=fLGa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEzGST1qK91JWIIFUIgKySKuhPdYf8SnEwYz/g+ixjVTAiAyjaKdrULQ5mJaiW+TzSLebls5Fd9cr+laD18lVL8InQ=="}],"size":4114,"noattachment":false,"key":"/@reach/window-size/-/@reach/window-size-0.9.0.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.9.0_1584146216198_0.21531944908859124"},"_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":1584146216361,"_cnpm_publish_time":1584146216361,"dist-tags":{"latest":"0.18.0","next":"0.4.0-beta.0","pre":"0.18.0-pre.5"}}