{"_id":"react-scrollbar-size","_rev":"2829238","name":"react-scrollbar-size","description":"React hook to calculate the size of browser scrollbars","dist-tags":{"latest":"5.0.0","rc":"4.0.0-rc.0"},"maintainers":[{"name":"shawnmcknight","email":""}],"time":{"modified":"2022-09-06T14:42:21.000Z","created":"2017-03-25T19:06:19.368Z","5.0.0":"2022-05-07T16:57:46.700Z","4.0.0":"2021-05-15T14:49:59.740Z","4.0.0-rc.0":"2021-04-04T15:33:13.635Z","3.2.0":"2021-03-12T01:09:13.382Z","3.1.1":"2021-03-06T18:02:25.699Z","3.1.0":"2020-11-07T22:33:12.349Z","3.0.1":"2020-07-25T20:21:20.888Z","3.0.0":"2020-07-18T22:53:01.891Z","3.0.0-rc.0":"2020-07-18T17:56:53.348Z","2.1.0":"2018-01-31T20:56:24.302Z","2.0.2":"2017-10-06T02:38:06.147Z","2.0.1":"2017-09-19T22:05:54.272Z","2.0.0":"2017-05-30T15:41:58.497Z","1.0.2":"2017-05-28T14:42:00.416Z","1.0.1":"2017-04-26T22:53:10.767Z","1.0.0":"2017-04-17T20:09:19.047Z","0.1.0":"2017-03-25T19:06:19.368Z"},"users":{},"author":{"name":"Shawn McKnight"},"repository":{"type":"git","url":"git+https://github.com/shawnmcknight/react-scrollbar-size.git"},"versions":{"5.0.0":{"name":"react-scrollbar-size","private":false,"version":"5.0.0","description":"React hook to calculate the size of browser scrollbars","main":"index.js","repository":{"type":"git","url":"git+https://github.com/shawnmcknight/react-scrollbar-size.git"},"keywords":["react","scrollbar"],"author":{"name":"Shawn McKnight"},"license":"MIT","bugs":{"url":"https://github.com/shawnmcknight/react-scrollbar-size/issues"},"homepage":"https://github.com/shawnmcknight/react-scrollbar-size#readme","engines":{"node":">=14.0.0"},"peerDependencies":{"react":"^16.8.0 || ^17.0.1 || ^18.0.0"},"types":"./index.d.ts","gitHead":"3a4155fb0ba7ad431b32d8feef82d92ac2ec8fc4","_id":"react-scrollbar-size@5.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.8.0","dist":{"shasum":"29892779dfcb9077ce18e2483d1dba6400c58fb0","size":5607,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-5.0.0.tgz"},"_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"directories":{},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scrollbar-size_5.0.0_1651942666578_0.5273978276019469"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-07T16:58:39.103Z","publish_time":1651942666700,"_cnpm_publish_time":1651942666700},"4.0.0":{"name":"react-scrollbar-size","version":"4.0.0","description":"React hook to calculate the size of browser scrollbars","main":"index.js","repository":{"type":"git","url":"git+https://github.com/shawnmcknight/react-scrollbar-size.git"},"keywords":["react","scrollbar"],"author":{"name":"Shawn McKnight"},"license":"MIT","bugs":{"url":"https://github.com/shawnmcknight/react-scrollbar-size/issues"},"homepage":"https://github.com/shawnmcknight/react-scrollbar-size#readme","peerDependencies":{"react":"^16.8.0 || ^17.0.1"},"dependencies":{},"_id":"react-scrollbar-size@4.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"47c130b9c46331c1bdade030b890d80388da9c6b","size":5820,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-4.0.0.tgz"},"_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"directories":{},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scrollbar-size_4.0.0_1621090199581_0.9337136689057042"},"_hasShrinkwrap":false,"publish_time":1621090199740,"_cnpm_publish_time":1621090199740,"_cnpmcore_publish_time":"2021-12-16T10:34:43.748Z"},"4.0.0-rc.0":{"name":"react-scrollbar-size","version":"4.0.0-rc.0","description":"React hook to calculate the size of browser scrollbars","main":"index.js","repository":{"type":"git","url":"git+https://github.com/shawnmcknight/react-scrollbar-size.git"},"keywords":["react","scrollbar"],"author":{"name":"Shawn McKnight"},"license":"MIT","bugs":{"url":"https://github.com/shawnmcknight/react-scrollbar-size/issues"},"homepage":"https://github.com/shawnmcknight/react-scrollbar-size#readme","peerDependencies":{"react":"^16.8.0 || ^17.0.1"},"dependencies":{},"readmeFilename":"README.md","_id":"react-scrollbar-size@4.0.0-rc.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"f1c47cbeacda60b014f87d18725cd5bb613c2202","size":5896,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-4.0.0-rc.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-4.0.0-rc.0.tgz"},"_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"directories":{},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scrollbar-size_4.0.0-rc.0_1617550393520_0.792693734817195"},"_hasShrinkwrap":false,"publish_time":1617550393635,"_cnpm_publish_time":1617550393635,"_cnpmcore_publish_time":"2021-12-16T10:34:43.954Z"},"3.2.0":{"name":"react-scrollbar-size","version":"3.2.0","description":"React component to calculate the size of browser scrollbars","main":"index.js","repository":{"type":"git","url":"git+https://github.com/shawnmcknight/react-scrollbar-size.git"},"keywords":["react","scrollbar"],"author":{"name":"Shawn McKnight"},"license":"MIT","bugs":{"url":"https://github.com/shawnmcknight/react-scrollbar-size/issues"},"homepage":"https://github.com/shawnmcknight/react-scrollbar-size#readme","peerDependencies":{"react":"^16.8.0 || ^17.0.1"},"dependencies":{},"_id":"react-scrollbar-size@3.2.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"2ab5c6f574cd0051dfcdbae337a64073a949ad6f","size":6105,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-3.2.0.tgz"},"_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"directories":{},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scrollbar-size_3.2.0_1615511353189_0.786909749619702"},"_hasShrinkwrap":false,"publish_time":1615511353382,"_cnpm_publish_time":1615511353382,"_cnpmcore_publish_time":"2021-12-16T10:34:44.309Z"},"3.1.1":{"name":"react-scrollbar-size","version":"3.1.1","description":"React component to calculate the size of browser scrollbars","main":"index.js","repository":{"type":"git","url":"git+https://github.com/shawnmcknight/react-scrollbar-size.git"},"keywords":["react","scrollbar"],"author":{"name":"Shawn McKnight"},"license":"MIT","bugs":{"url":"https://github.com/shawnmcknight/react-scrollbar-size/issues"},"homepage":"https://github.com/shawnmcknight/react-scrollbar-size#readme","peerDependencies":{"react":"^16.8.0 || ^17.0.1"},"dependencies":{},"_id":"react-scrollbar-size@3.1.1","_nodeVersion":"12.17.0","_npmVersion":"6.14.4","dist":{"shasum":"d5008a59cc1dd15663ed3fdba1de7d653abe1e95","size":5639,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-3.1.1.tgz"},"_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"directories":{},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scrollbar-size_3.1.1_1615053745552_0.5364455755326991"},"_hasShrinkwrap":false,"publish_time":1615053745699,"_cnpm_publish_time":1615053745699,"_cnpmcore_publish_time":"2021-12-16T10:34:44.511Z"},"3.1.0":{"name":"react-scrollbar-size","version":"3.1.0","description":"React component to calculate the size of browser scrollbars","main":"index.js","repository":{"type":"git","url":"git+https://github.com/STORIS/react-scrollbar-size.git"},"keywords":["react","scrollbar"],"author":{"name":"STORIS"},"license":"MIT","bugs":{"url":"https://github.com/STORIS/react-scrollbar-size/issues"},"homepage":"https://github.com/STORIS/react-scrollbar-size#readme","peerDependencies":{"react":"^16.8.0 || ^17.0.1"},"dependencies":{},"_id":"react-scrollbar-size@3.1.0","_nodeVersion":"12.17.0","_npmVersion":"6.14.4","dist":{"shasum":"6cff1547ea95f62d6c9d5eb18dad59afe4033a9f","size":5556,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-3.1.0.tgz"},"_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"directories":{},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scrollbar-size_3.1.0_1604788392234_0.05380581630805814"},"_hasShrinkwrap":false,"publish_time":1604788392349,"_cnpm_publish_time":1604788392349,"_cnpmcore_publish_time":"2021-12-16T10:34:44.748Z"},"3.0.1":{"name":"react-scrollbar-size","version":"3.0.1","description":"React component to calculate the size of browser scrollbars","main":"index.js","repository":{"type":"git","url":"git+https://github.com/STORIS/react-scrollbar-size.git"},"keywords":["react","scrollbar"],"author":{"name":"STORIS"},"license":"MIT","bugs":{"url":"https://github.com/STORIS/react-scrollbar-size/issues"},"homepage":"https://github.com/STORIS/react-scrollbar-size#readme","peerDependencies":{"react":"^16.8.0"},"dependencies":{},"_id":"react-scrollbar-size@3.0.1","_nodeVersion":"12.17.0","_npmVersion":"6.14.4","dist":{"shasum":"c3366aaacf0408332e1cbd4f60ade7a13389c4fd","size":5499,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-3.0.1.tgz"},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scrollbar-size_3.0.1_1595708480768_0.2829380939005799"},"_hasShrinkwrap":false,"publish_time":1595708480888,"_cnpm_publish_time":1595708480888,"_cnpmcore_publish_time":"2021-12-16T10:34:44.950Z"},"3.0.0":{"name":"react-scrollbar-size","version":"3.0.0","description":"React component to calculate the size of browser scrollbars","main":"index.js","repository":{"type":"git","url":"git+https://github.com/STORIS/react-scrollbar-size.git"},"keywords":["react","scrollbar"],"author":{"name":"STORIS"},"license":"MIT","bugs":{"url":"https://github.com/STORIS/react-scrollbar-size/issues"},"homepage":"https://github.com/STORIS/react-scrollbar-size#readme","peerDependencies":{"react":"^16.8.0"},"dependencies":{"lodash.debounce":"^4.0.8"},"_id":"react-scrollbar-size@3.0.0","_nodeVersion":"12.17.0","_npmVersion":"6.14.4","dist":{"shasum":"4e3b84d454b5c134b9b623624ecb95ff2d319bb8","size":4934,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-3.0.0.tgz"},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scrollbar-size_3.0.0_1595112781780_0.3978103102340189"},"_hasShrinkwrap":false,"publish_time":1595112781891,"_cnpm_publish_time":1595112781891,"_cnpmcore_publish_time":"2021-12-16T10:34:45.161Z"},"3.0.0-rc.0":{"name":"react-scrollbar-size","version":"3.0.0-rc.0","description":"React component to calculate the size of browser scrollbars","main":"index.js","repository":{"type":"git","url":"git+https://github.com/STORIS/react-scrollbar-size.git"},"keywords":["react","scrollbar"],"author":{"name":"STORIS"},"license":"MIT","bugs":{"url":"https://github.com/STORIS/react-scrollbar-size/issues"},"homepage":"https://github.com/STORIS/react-scrollbar-size#readme","peerDependencies":{"react":"^16.8.0"},"dependencies":{"lodash.debounce":"^4.0.8"},"readmeFilename":"README.md","_id":"react-scrollbar-size@3.0.0-rc.0","_nodeVersion":"12.17.0","_npmVersion":"6.14.4","dist":{"shasum":"b23245b31c7bafa635ca9eef334cac278f4dc6c8","size":4607,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-3.0.0-rc.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-3.0.0-rc.0.tgz"},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scrollbar-size_3.0.0-rc.0_1595095013185_0.6114055308258886"},"_hasShrinkwrap":false,"publish_time":1595095013348,"_cnpm_publish_time":1595095013348,"_cnpmcore_publish_time":"2021-12-16T10:34:45.395Z"},"2.1.0":{"name":"react-scrollbar-size","author":{"name":"STORIS"},"version":"2.1.0","description":"React component to calculate the size of browser scrollbars","main":"./index.js","keywords":["react","scrollbar"],"repository":{"type":"git","url":"git+https://github.com/STORIS/react-scrollbar-size.git"},"license":"MIT","bugs":{"url":"https://github.com/STORIS/react-scrollbar-size/issues"},"homepage":"https://github.com/STORIS/react-scrollbar-size#readme","peerDependencies":{"react":"^15.3.0 || ^16.0.0"},"dependencies":{"babel-runtime":"^6.26.0","prop-types":"^15.6.0","react-event-listener":"^0.5.1","stifle":"^1.0.2"},"_id":"react-scrollbar-size@2.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"dist":{"shasum":"105e797135cab92b1f9e16f00071db7f29f80754","size":3680,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-2.1.0.tgz"},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scrollbar-size-2.1.0.tgz_1517432183249_0.9017003409098834"},"directories":{},"publish_time":1517432184302,"_hasShrinkwrap":false,"_cnpm_publish_time":1517432184302,"_cnpmcore_publish_time":"2021-12-16T10:34:45.584Z"},"2.0.2":{"name":"react-scrollbar-size","author":{"name":"STORIS"},"version":"2.0.2","description":"React component to calculate the size of browser scrollbars","main":"./index.js","keywords":["react","scrollbar"],"repository":{"type":"git","url":"git+https://github.com/STORIS/react-scrollbar-size.git"},"license":"MIT","bugs":{"url":"https://github.com/STORIS/react-scrollbar-size/issues"},"homepage":"https://github.com/STORIS/react-scrollbar-size#readme","peerDependencies":{"lodash":"^4.17.0","react":"^15.3.0 || ^16.0.0"},"dependencies":{"babel-runtime":"^6.23.0","prop-types":"^15.5.10","react-event-listener":"^0.5.0"},"_id":"react-scrollbar-size@2.0.2","_npmVersion":"5.3.0","_nodeVersion":"6.11.3","_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"dist":{"shasum":"237dd091fa39dec8e3a6f720807787703c5ebf9e","size":3586,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-2.0.2.tgz"},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scrollbar-size-2.0.2.tgz_1507257485055_0.4005704519804567"},"directories":{},"publish_time":1507257486147,"_hasShrinkwrap":false,"_cnpm_publish_time":1507257486147,"_cnpmcore_publish_time":"2021-12-16T10:34:45.806Z"},"2.0.1":{"name":"react-scrollbar-size","author":{"name":"STORIS"},"version":"2.0.1","description":"React component to calculate the size of browser scrollbars","main":"./index.js","keywords":["react","scrollbar"],"repository":{"type":"git","url":"git+https://github.com/STORIS/react-scrollbar-size.git"},"license":"MIT","bugs":{"url":"https://github.com/STORIS/react-scrollbar-size/issues"},"homepage":"https://github.com/STORIS/react-scrollbar-size#readme","peerDependencies":{"lodash":"^4.17.0","react":"^15.5.0"},"dependencies":{"babel-runtime":"^6.23.0","prop-types":"^15.5.10","react-event-listener":"^0.5.0"},"_id":"react-scrollbar-size@2.0.1","_npmVersion":"5.3.0","_nodeVersion":"6.11.0","_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"dist":{"shasum":"fc13631d27efc93d7a1f40383b375dc449ebfac4","size":3568,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-2.0.1.tgz"},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scrollbar-size-2.0.1.tgz_1505858753190_0.7806971680838615"},"directories":{},"publish_time":1505858754272,"_hasShrinkwrap":false,"_cnpm_publish_time":1505858754272,"_cnpmcore_publish_time":"2021-12-16T10:34:46.030Z"},"2.0.0":{"name":"react-scrollbar-size","author":{"name":"STORIS"},"version":"2.0.0","description":"React component to calculate the size of browser scrollbars","main":"./index.js","keywords":["react","scrollbar"],"repository":{"type":"git","url":"git+https://github.com/STORIS/react-scrollbar-size.git"},"license":"MIT","bugs":{"url":"https://github.com/STORIS/react-scrollbar-size/issues"},"homepage":"https://github.com/STORIS/react-scrollbar-size#readme","peerDependencies":{"lodash":"^4.17.0","react":"^15.5.0"},"dependencies":{"babel-runtime":"^6.23.0","prop-types":"^15.5.10","react-event-listener":"^0.4.5"},"_id":"react-scrollbar-size@2.0.0","scripts":{},"_shasum":"611215f4105db28f1f56ccace627c3fce137a2f3","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.10.3","_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"dist":{"shasum":"611215f4105db28f1f56ccace627c3fce137a2f3","size":3569,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-2.0.0.tgz"},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scrollbar-size-2.0.0.tgz_1496158917423_0.1271823993884027"},"directories":{},"publish_time":1496158918497,"_hasShrinkwrap":false,"_cnpm_publish_time":1496158918497,"_cnpmcore_publish_time":"2021-12-16T10:34:46.244Z"},"1.0.2":{"name":"react-scrollbar-size","author":{"name":"STORIS"},"version":"1.0.2","description":"React component to calculate the size of browser scrollbars","main":"./index.js","keywords":["react","scrollbar"],"repository":{"type":"git","url":"git+https://github.com/STORIS/react-scrollbar-size.git"},"license":"MIT","bugs":{"url":"https://github.com/STORIS/react-scrollbar-size/issues"},"homepage":"https://github.com/STORIS/react-scrollbar-size#readme","dependencies":{"babel-runtime":"^6.23.0","lodash":"^4.17.4","prop-types":"^15.5.10","react":"^15.5.4","react-event-listener":"^0.4.5"},"_id":"react-scrollbar-size@1.0.2","scripts":{},"_shasum":"1bfda0595223feb75edf5cdc6d0f062f3221ff4e","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"dist":{"shasum":"1bfda0595223feb75edf5cdc6d0f062f3221ff4e","size":3450,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-1.0.2.tgz"},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scrollbar-size-1.0.2.tgz_1495982519422_0.3861726806499064"},"directories":{},"publish_time":1495982520416,"_hasShrinkwrap":false,"_cnpm_publish_time":1495982520416,"_cnpmcore_publish_time":"2021-12-16T10:34:46.434Z"},"1.0.1":{"name":"react-scrollbar-size","author":{"name":"STORIS"},"version":"1.0.1","description":"React component to calculate the size of browser scrollbars","main":"./index.js","keywords":["react","scrollbar"],"repository":{"type":"git","url":"git+https://github.com/STORIS/react-scrollbar-size.git"},"license":"MIT","bugs":{"url":"https://github.com/STORIS/react-scrollbar-size/issues"},"homepage":"https://github.com/STORIS/react-scrollbar-size#readme","dependencies":{"babel-runtime":"^6.23.0","lodash.isequal":"^4.5.0","lodash.throttle":"^4.1.1","prop-types":"^15.5.8","react":"^15.5.4","react-event-listener":"^0.4.5"},"_id":"react-scrollbar-size@1.0.1","scripts":{},"_shasum":"a28c8d82f922c9342b033addcb0d2539b394f63e","_from":".","_npmVersion":"4.5.0","_nodeVersion":"7.7.3","_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"dist":{"shasum":"a28c8d82f922c9342b033addcb0d2539b394f63e","size":3266,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-1.0.1.tgz"},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-scrollbar-size-1.0.1.tgz_1493247189209_0.7670347644016147"},"directories":{},"publish_time":1493247190767,"_hasShrinkwrap":false,"_cnpm_publish_time":1493247190767,"_cnpmcore_publish_time":"2021-12-16T10:34:46.667Z"},"1.0.0":{"name":"react-scrollbar-size","author":{"name":"STORIS"},"version":"1.0.0","description":"React component to calculate the size of browser scrollbars","main":"./index.js","keywords":["react","scrollbar"],"repository":{"type":"git","url":"git+https://github.com/STORIS/react-scrollbar-size.git"},"license":"MIT","bugs":{"url":"https://github.com/STORIS/react-scrollbar-size/issues"},"homepage":"https://github.com/STORIS/react-scrollbar-size#readme","dependencies":{"babel-runtime":"^6.23.0","lodash.isequal":"^4.5.0","lodash.throttle":"^4.1.1","prop-types":"^15.5.8","react":"^15.5.4","react-event-listener":"^0.4.5"},"_id":"react-scrollbar-size@1.0.0","scripts":{},"_shasum":"2ca80e05c2ce4265a360fc4c8b309b6a4fec517f","_from":".","_npmVersion":"4.5.0","_nodeVersion":"7.7.3","_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"dist":{"shasum":"2ca80e05c2ce4265a360fc4c8b309b6a4fec517f","size":3213,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-1.0.0.tgz"},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-scrollbar-size-1.0.0.tgz_1492459758354_0.34165919525548816"},"directories":{},"publish_time":1492459759047,"_hasShrinkwrap":false,"_cnpm_publish_time":1492459759047,"_cnpmcore_publish_time":"2021-12-16T10:34:46.895Z"},"0.1.0":{"name":"react-scrollbar-size","author":{"name":"STORIS"},"version":"0.1.0","description":"React component to calculate the size of browser scrollbars","main":"./index.js","keywords":["react","scrollbar"],"repository":{"type":"git","url":"git+https://github.com/STORIS/react-scrollbar-size.git"},"license":"MIT","bugs":{"url":"https://github.com/STORIS/react-scrollbar-size/issues"},"homepage":"https://github.com/STORIS/react-scrollbar-size#readme","dependencies":{"babel-runtime":"^6.23.0","lodash.isequal":"^4.5.0","react":"^15.4.2","react-event-listener":"^0.4.3"},"_id":"react-scrollbar-size@0.1.0","scripts":{},"_shasum":"14119ccdf9d13aa02cbc4d1aec3417ac4d2adb8b","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.4.0","_npmUser":{"name":"shawnmcknight","email":"mck321@gmail.com"},"dist":{"shasum":"14119ccdf9d13aa02cbc4d1aec3417ac4d2adb8b","size":3066,"noattachment":false,"key":"/react-scrollbar-size/-/react-scrollbar-size-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-scrollbar-size/download/react-scrollbar-size-0.1.0.tgz"},"maintainers":[{"name":"shawnmcknight","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-scrollbar-size-0.1.0.tgz_1490468777484_0.8337374427355826"},"directories":{},"publish_time":1490468779368,"_hasShrinkwrap":false,"_cnpm_publish_time":1490468779368,"_cnpmcore_publish_time":"2021-12-16T10:34:47.099Z"}},"readme":"# React-Scrollbar-Size\n\n<div align=\"center\">\n\nReact-Scrollbar-Size is a [React](https://reactjs.org/) hook designed to calculate the size of the user agent's horizontal and vertical scrollbars.\nIt will also detect when the size of the scrollbars change, such as when the user agent's zoom factor changes.\n\n[![npm package](https://img.shields.io/npm/v/react-scrollbar-size/latest.svg)](https://www.npmjs.com/package/react-scrollbar-size)\n[![npm downloads](https://img.shields.io/npm/dm/react-scrollbar-size)](https://www.npmjs.com/package/react-scrollbar-size)\n[![CircleCI](https://circleci.com/gh/shawnmcknight/react-scrollbar-size.svg?style=shield)](https://circleci.com/gh/shawnmcknight/react-scrollbar-size/tree/main)\n[![Code Climate](https://img.shields.io/codeclimate/maintainability/shawnmcknight/react-scrollbar-size)](https://codeclimate.com/github/shawnmcknight/react-scrollbar-size)\n[![Code Style](https://badgen.net/badge/eslint/airbnb/ff5a5f?icon=airbnb)](https://github.com/airbnb/javascript)\n[![Code style](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io/)\n[![Dependencies](https://img.shields.io/librariesio/release/npm/react-scrollbar-size)](https://libraries.io/npm/react-scrollbar-size)\n[![Percentage of issues still open](https://isitmaintained.com/badge/open/shawnmcknight/react-scrollbar-size.svg)](https://isitmaintained.com/project/shawnmcknight/react-scrollbar-size)\n![License](https://img.shields.io/npm/l/react-scrollbar-size)\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](code_of_conduct.md)\n[![Star on Github](https://img.shields.io/github/stars/shawnmcknight/react-scrollbar-size?style=social)](https://github.com/shawnmcknight/react-scrollbar-size)\n\n</div>\n\n## Installation\n\nReact-Scrollbar-Size is available as an [npm package](https://www.npmjs.com/package/react-scrollbar-size):\n\n```sh\n$ npm install react-scrollbar-size\n```\n\n## Usage\n\nThe `useScrollbarSize` custom hook returns an object with two properties:\n\n| Name     | Description                                    |\n| -------- | ---------------------------------------------- |\n| `width`  | The current width of the vertical scrollbar    |\n| `height` | The current height of the horizontal scrollbar |\n\n## Examples\n\nTo see a live example, follow these [instructions](/example/README.md).\n\n### TypeScript\n\n```tsx\nimport { CSSProperties, FunctionComponent } from 'react';\nimport useScrollbarSize from 'react-scrollbar-size';\n\nconst styles: CSSProperties = {\n  margin: '1rem',\n  textAlign: 'center',\n};\n\nconst ScrollbarSizeDemo: FunctionComponent = () => {\n  const { height, width } = useScrollbarSize();\n\n  return (\n    <div style={styles}>\n      <h2>React Scrollbar Size Demo</h2>\n      <h4>Tip: Change browser zoom level to see scrollbar sizes change.</h4>\n      <p>\n        The current height of the scrollbar is {height}px.\n        <br />\n        The current width of the scrollbar is {width}px.\n      </p>\n    </div>\n  );\n};\n```\n\n### JavaScript\n\n```jsx\nimport useScrollbarSize from 'react-scrollbar-size';\n\nconst styles = {\n  margin: '1rem',\n  textAlign: 'center',\n};\n\nconst ScrollbarSizeDemo = () => {\n  const { height, width } = useScrollbarSize();\n\n  return (\n    <div style={styles}>\n      <h2>React Scrollbar Size Demo</h2>\n      <h4>Tip: Change browser zoom level to see scrollbar sizes change.</h4>\n      <p>\n        The current height of the scrollbar is {height}px.\n        <br />\n        The current width of the scrollbar is {width}px.\n      </p>\n    </div>\n  );\n};\n```\n\n## License\n\nThis project is licensed under the terms of the\n[MIT license](/LICENSE).\n","_attachments":{},"homepage":"https://github.com/shawnmcknight/react-scrollbar-size#readme","bugs":{"url":"https://github.com/shawnmcknight/react-scrollbar-size/issues"},"license":"MIT"}