{"_id":"no-scroll","_rev":"323168","name":"no-scroll","description":"Disable the document's scrolling","dist-tags":{"latest":"2.1.1"},"maintainers":[{"name":"davidtheclark","email":"david.dave.clark@gmail.com"}],"time":{"modified":"2021-06-04T01:38:05.000Z","created":"2015-08-23T14:08:06.705Z","2.1.1":"2018-05-08T03:24:16.968Z","2.1.0":"2017-04-29T16:48:33.815Z","2.0.0":"2016-08-07T02:12:35.751Z","1.1.2":"2015-12-17T17:45:34.397Z","1.1.1":"2015-09-30T18:26:36.521Z","1.1.0":"2015-09-30T13:20:52.697Z","1.0.2":"2015-09-04T01:22:39.157Z","1.0.1":"2015-08-30T15:59:40.413Z","1.0.0":"2015-08-27T00:01:04.696Z","0.1.0":"2015-08-23T14:08:06.705Z"},"users":{"jian263994241":true},"author":{"name":"David Clark"},"repository":{"type":"git","url":"git+https://github.com/davidtheclark/no-scroll.git"},"versions":{"2.1.1":{"name":"no-scroll","version":"2.1.1","description":"Disable the document's scrolling","main":"index.js","scripts":{"start":"watchify demo -o demo/demo-bundle.js & browser-sync start --server --files demo/*.js --index ./demo.html","demo-bundle":"browserify demo -o demo/demo-bundle.js"},"repository":{"type":"git","url":"git+https://github.com/davidtheclark/no-scroll.git"},"keywords":["scroll","scrolling","disable","modal","dialog"],"author":{"name":"David Clark"},"license":"MIT","bugs":{"url":"https://github.com/davidtheclark/no-scroll/issues"},"homepage":"https://github.com/davidtheclark/no-scroll#readme","devDependencies":{"browser-sync":"^2.14.0","browserify":"^11.0.1","watchify":"^3.11.0"},"files":["index.js"],"gitHead":"4b930d6573015f3c949bc69234a60b82281b7f98","_id":"no-scroll@2.1.1","_npmVersion":"6.0.0","_nodeVersion":"8.11.1","_npmUser":{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},"dist":{"shasum":"f37e08cb159b75a5bdbfc0a87cd9223e120e6e27","size":2519,"noattachment":false,"key":"/no-scroll/-/no-scroll-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/no-scroll/download/no-scroll-2.1.1.tgz"},"maintainers":[{"name":"davidtheclark","email":"david.dave.clark@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/no-scroll_2.1.1_1525749856866_0.7184401962886744"},"_hasShrinkwrap":false,"publish_time":1525749856968,"_cnpm_publish_time":1525749856968},"2.1.0":{"name":"no-scroll","version":"2.1.0","description":"Disable the document's scrolling","main":"index.js","scripts":{"start":"browser-sync start --server --files demo/*.js --index ./demo.html","demo-bundle":"browserify demo -o demo/demo-bundle.js"},"repository":{"type":"git","url":"git+https://github.com/davidtheclark/no-scroll.git"},"keywords":["scroll","scrolling","disable","modal","dialog"],"author":{"name":"David Clark"},"license":"MIT","bugs":{"url":"https://github.com/davidtheclark/no-scroll/issues"},"homepage":"https://github.com/davidtheclark/no-scroll#readme","devDependencies":{"browser-sync":"^2.14.0","browserify":"^11.0.1"},"files":["index.js"],"gitHead":"fcf54b6f521722894248119f22430c26e39fd394","_id":"no-scroll@2.1.0","_shasum":"f8643b3ddb6a3bf94430e5ff31d26f21d082a695","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.10.0","_npmUser":{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},"dist":{"shasum":"f8643b3ddb6a3bf94430e5ff31d26f21d082a695","size":2450,"noattachment":false,"key":"/no-scroll/-/no-scroll-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/no-scroll/download/no-scroll-2.1.0.tgz"},"maintainers":[{"name":"davidtheclark","email":"david.dave.clark@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/no-scroll-2.1.0.tgz_1493484513519_0.3593829399906099"},"directories":{},"publish_time":1493484513815,"_cnpm_publish_time":1493484513815,"_hasShrinkwrap":false},"2.0.0":{"name":"no-scroll","version":"2.0.0","description":"Disable the document's scrolling","main":"index.js","scripts":{"start":"browser-sync start --server --files demo/*.js --index ./demo.html","demo-bundle":"browserify demo -o demo/demo-bundle.js"},"repository":{"type":"git","url":"git+https://github.com/davidtheclark/no-scroll.git"},"keywords":["scroll","scrolling","disable","modal","dialog"],"author":{"name":"David Clark"},"license":"MIT","bugs":{"url":"https://github.com/davidtheclark/no-scroll/issues"},"homepage":"https://github.com/davidtheclark/no-scroll#readme","devDependencies":{"browser-sync":"^2.14.0","browserify":"^11.0.1"},"files":["index.js"],"gitHead":"660c68d92ebf19fe241deaaf1b7ce48c1b7f12a6","_id":"no-scroll@2.0.0","_shasum":"2daeb4a57b94edc8f86ebc69ad02bf0823a49c2e","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.4.7","_npmUser":{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},"dist":{"shasum":"2daeb4a57b94edc8f86ebc69ad02bf0823a49c2e","size":2372,"noattachment":false,"key":"/no-scroll/-/no-scroll-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/no-scroll/download/no-scroll-2.0.0.tgz"},"maintainers":[{"name":"davidtheclark","email":"david.dave.clark@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/no-scroll-2.0.0.tgz_1470535955491_0.8989648935385048"},"directories":{},"publish_time":1470535955751,"_cnpm_publish_time":1470535955751,"_hasShrinkwrap":false},"1.1.2":{"name":"no-scroll","version":"1.1.2","description":"Disable the document's scrolling","main":"index.js","scripts":{"demo-bundle":"browserify demo -o demo/demo-bundle.js"},"repository":{"type":"git","url":"git+https://github.com/davidtheclark/no-scroll.git"},"keywords":["scroll","scrolling","disable","modal","dialog"],"author":{"name":"David Clark"},"license":"MIT","bugs":{"url":"https://github.com/davidtheclark/no-scroll/issues"},"homepage":"https://github.com/davidtheclark/no-scroll#readme","devDependencies":{"browserify":"^11.0.1"},"files":["index.js"],"gitHead":"bcb1085f10ec0dfe883e3904b7b9e75483a09259","_id":"no-scroll@1.1.2","_shasum":"a273eb237104cb6ba8b6ed2c464deb187a756a88","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.2.0","_npmUser":{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},"dist":{"shasum":"a273eb237104cb6ba8b6ed2c464deb187a756a88","size":2435,"noattachment":false,"key":"/no-scroll/-/no-scroll-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/no-scroll/download/no-scroll-1.1.2.tgz"},"maintainers":[{"name":"davidtheclark","email":"david.dave.clark@gmail.com"}],"directories":{},"publish_time":1450374334397,"_cnpm_publish_time":1450374334397,"_hasShrinkwrap":false},"1.1.1":{"name":"no-scroll","version":"1.1.1","description":"Disable the document's scrolling","main":"index.js","scripts":{"demo-bundle":"browserify demo -o demo/demo-bundle.js"},"repository":{"type":"git","url":"git+https://github.com/davidtheclark/no-scroll.git"},"keywords":["scroll","scrolling","disable","modal","dialog"],"author":{"name":"David Clark"},"license":"MIT","bugs":{"url":"https://github.com/davidtheclark/no-scroll/issues"},"homepage":"https://github.com/davidtheclark/no-scroll#readme","devDependencies":{"browserify":"^11.0.1"},"files":["index.js"],"gitHead":"88854faad98aeafe32f1b06de3a76bc995c100b0","_id":"no-scroll@1.1.1","_shasum":"3255dd98b83a1a04eeb32d8e0b68c68d0870a940","_from":".","_npmVersion":"2.14.5","_nodeVersion":"0.12.7","_npmUser":{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},"dist":{"shasum":"3255dd98b83a1a04eeb32d8e0b68c68d0870a940","size":2484,"noattachment":false,"key":"/no-scroll/-/no-scroll-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/no-scroll/download/no-scroll-1.1.1.tgz"},"maintainers":[{"name":"davidtheclark","email":"david.dave.clark@gmail.com"}],"directories":{},"publish_time":1443637596521,"_cnpm_publish_time":1443637596521,"_hasShrinkwrap":false},"1.1.0":{"name":"no-scroll","version":"1.1.0","description":"Disable the document's scrolling","main":"index.js","scripts":{"demo-bundle":"browserify demo -o demo/demo-bundle.js"},"repository":{"type":"git","url":"git+https://github.com/davidtheclark/no-scroll.git"},"keywords":["scroll","scrolling","disable","modal","dialog"],"author":{"name":"David Clark"},"license":"MIT","bugs":{"url":"https://github.com/davidtheclark/no-scroll/issues"},"homepage":"https://github.com/davidtheclark/no-scroll#readme","devDependencies":{"browserify":"^11.0.1"},"files":["index.js"],"gitHead":"122a9e35186e55aaf90780a26de64bcd960e31d1","_id":"no-scroll@1.1.0","_shasum":"cceafd9d4a585f88d0e35211305d891f2c2d888e","_from":".","_npmVersion":"2.14.5","_nodeVersion":"0.12.7","_npmUser":{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},"dist":{"shasum":"cceafd9d4a585f88d0e35211305d891f2c2d888e","size":2469,"noattachment":false,"key":"/no-scroll/-/no-scroll-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/no-scroll/download/no-scroll-1.1.0.tgz"},"maintainers":[{"name":"davidtheclark","email":"david.dave.clark@gmail.com"}],"directories":{},"publish_time":1443619252697,"_cnpm_publish_time":1443619252697,"_hasShrinkwrap":false},"1.0.2":{"name":"no-scroll","version":"1.0.2","description":"Disable the document's scrolling","main":"index.js","scripts":{"demo-bundle":"browserify demo -o demo/demo-bundle.js"},"repository":{"type":"git","url":"git+https://github.com/davidtheclark/no-scroll.git"},"keywords":["scroll","scrolling","disable","modal","dialog"],"author":{"name":"David Clark"},"license":"MIT","bugs":{"url":"https://github.com/davidtheclark/no-scroll/issues"},"homepage":"https://github.com/davidtheclark/no-scroll#readme","devDependencies":{"browserify":"^11.0.1"},"files":["index.js"],"gitHead":"d46aaf902a82c028058733a89255a63199fc0756","_id":"no-scroll@1.0.2","_shasum":"bee4ec0c6f041cfb1318db79db805b87b674baf6","_from":".","_npmVersion":"2.14.0","_nodeVersion":"0.12.7","_npmUser":{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},"dist":{"shasum":"bee4ec0c6f041cfb1318db79db805b87b674baf6","size":2346,"noattachment":false,"key":"/no-scroll/-/no-scroll-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/no-scroll/download/no-scroll-1.0.2.tgz"},"maintainers":[{"name":"davidtheclark","email":"david.dave.clark@gmail.com"}],"directories":{},"publish_time":1441329759157,"_cnpm_publish_time":1441329759157,"_hasShrinkwrap":false},"1.0.1":{"name":"no-scroll","version":"1.0.1","description":"Disable the document's scrolling","main":"index.js","scripts":{"demo-bundle":"browserify demo -o demo/demo-bundle.js"},"repository":{"type":"git","url":"git+https://github.com/davidtheclark/no-scroll.git"},"keywords":["scroll","scrolling","disable","modal","dialog"],"author":{"name":"David Clark"},"license":"MIT","bugs":{"url":"https://github.com/davidtheclark/no-scroll/issues"},"homepage":"https://github.com/davidtheclark/no-scroll#readme","devDependencies":{"browserify":"^11.0.1"},"files":["index.js"],"gitHead":"274807653a0630b27cd2f6ed627efdd44ac9bd3d","_id":"no-scroll@1.0.1","_shasum":"37e85aeb5753e6c2bd302ec23d58261d3bc6ab5e","_from":".","_npmVersion":"2.14.0","_nodeVersion":"0.12.7","_npmUser":{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},"dist":{"shasum":"37e85aeb5753e6c2bd302ec23d58261d3bc6ab5e","size":2277,"noattachment":false,"key":"/no-scroll/-/no-scroll-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/no-scroll/download/no-scroll-1.0.1.tgz"},"maintainers":[{"name":"davidtheclark","email":"david.dave.clark@gmail.com"}],"directories":{},"publish_time":1440950380413,"_cnpm_publish_time":1440950380413,"_hasShrinkwrap":false},"1.0.0":{"name":"no-scroll","version":"1.0.0","description":"Disable the document's scrolling","main":"index.js","scripts":{"demo-bundle":"browserify demo -o demo/demo-bundle.js"},"repository":{"type":"git","url":"git+https://github.com/davidtheclark/no-scroll.git"},"keywords":["scroll","scrolling","disable","modal","dialog"],"author":{"name":"David Clark"},"license":"MIT","bugs":{"url":"https://github.com/davidtheclark/no-scroll/issues"},"homepage":"https://github.com/davidtheclark/no-scroll#readme","devDependencies":{"browserify":"^11.0.1"},"files":["index.js"],"gitHead":"9fc021d8d12a799404c8382527fc5f0ee7c2c8ef","_id":"no-scroll@1.0.0","_shasum":"4510868fe827d19ec14195963a2f8147abe7c0f2","_from":".","_npmVersion":"2.13.2","_nodeVersion":"0.12.7","_npmUser":{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},"dist":{"shasum":"4510868fe827d19ec14195963a2f8147abe7c0f2","size":2169,"noattachment":false,"key":"/no-scroll/-/no-scroll-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/no-scroll/download/no-scroll-1.0.0.tgz"},"maintainers":[{"name":"davidtheclark","email":"david.dave.clark@gmail.com"}],"directories":{},"publish_time":1440633664696,"_cnpm_publish_time":1440633664696,"_hasShrinkwrap":false},"0.1.0":{"name":"no-scroll","version":"0.1.0","description":"Disable the document's scrolling","main":"index.js","scripts":{"demo-bundle":"browserify demo -o demo/demo-bundle.js"},"repository":{"type":"git","url":"git+https://github.com/davidtheclark/no-scroll.git"},"keywords":["scroll","scrolling","disable","modal","dialog"],"author":{"name":"David Clark"},"license":"MIT","bugs":{"url":"https://github.com/davidtheclark/no-scroll/issues"},"homepage":"https://github.com/davidtheclark/no-scroll#readme","devDependencies":{"browserify":"^11.0.1"},"files":["index.js"],"gitHead":"1b1f8b191e8085bc1a9fc6367a21b434731b574c","_id":"no-scroll@0.1.0","_shasum":"375dc29cde6b788a224f513833ca2c8599805725","_from":".","_npmVersion":"2.13.2","_nodeVersion":"0.12.7","_npmUser":{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},"dist":{"shasum":"375dc29cde6b788a224f513833ca2c8599805725","size":2163,"noattachment":false,"key":"/no-scroll/-/no-scroll-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/no-scroll/download/no-scroll-0.1.0.tgz"},"maintainers":[{"name":"davidtheclark","email":"david.dave.clark@gmail.com"}],"directories":{},"publish_time":1440338886705,"_cnpm_publish_time":1440338886705,"_hasShrinkwrap":false}},"readme":"# no-scroll\n\nDisable the document's scrolling.\n\nIt's silly how many libraries have their own implementation of this.\nSo I thought I'd make a module that other libraries could use.\n\nHere's how this works:\n- When you turn it `on()`, the `documentElement` is styled with `width: calc(100% - scrollbarSize)`, `position: fixed`, `top: currentScrollTop`, and `overflow: hidden`.\n- When you turn it `off()`, everything goes back to the way it was before.\n\n## Installation\n\n```\nnpm install no-scroll\n```\n\nDependencies: *none*.\n\n## Browser Support\n\nIE9+\n\n## Usage\n\nThis module exposes three simple functions: `on()`, `off()` and `toggle()`.\n\n```js\nvar noScroll = require('no-scroll');\n\n// To turn off the document's scrolling\nnoScroll.on();\n\n// To restore scrolling\nnoScroll.off();\n\n// To toggle scrolling\nnoScroll.toggle();\n```\n\nIf you do not have a CommonJS environment (no `module.exports`), the module\nexposes the global object `noScroll`.\n","_attachments":{},"homepage":"https://github.com/davidtheclark/no-scroll#readme","bugs":{"url":"https://github.com/davidtheclark/no-scroll/issues"},"license":"MIT"}