{"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","tarball":"http://registry-npm.ywwl.com/no-scroll/download/no-scroll-2.0.0.tgz","integrity":"sha512-iMPe73tlWssfA0yKT0r4TJqZTV6jnKRmaV/wJQ3ny0FTIlp5Ir1FrYymrKqlje5s28DQRrQN4iblIbrWK/hTtg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyJSGKz84+hGH1OCc4EwtygS8JVevLBHKX6ycWmeQ1YQIhALT/OJ/8lCAKTzd6rKqEsByVaq4zzL8AC5MBOe4d6fR0"}],"size":2372,"noattachment":false,"key":"/no-scroll/-/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":{},"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","publish_time":1470535955751,"_cnpm_publish_time":1470535955751,"dist-tags":{"latest":"2.1.1"}}