{"_id":"dom-resize","_rev":"3-8e3b47a6d13ae8f6bd1983bd8c8f4208","name":"dom-resize","description":"Polyfill to make it easy to listen for element resize events","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"dom-resize","description":"Polyfill to make it easy to listen for element resize events","version":"1.0.0","author":"","bugs":{"url":"https://github.com/drcmda/dom-resize/issues"},"homepage":"https://github.com/drcmda/dom-resize","keywords":["event","resize","element-query","element queries"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/drcmda/dom-resize.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"8f5a8d055feef86d234afaa384e875babfadb531","_id":"dom-resize@1.0.0","_npmVersion":"5.2.0","_nodeVersion":"8.1.4","_npmUser":{"name":"drcmda","email":"drcmda@gmail.com"},"dist":{"integrity":"sha512-vp5RoeNJwZpbhwfgJLrr7I12h0zDf9BDEwvflkmeBnQ+FeJhrTwHtQu3MKLas+6oY10aRmbtQ+h/ihXMKIwVXg==","shasum":"0576d3a48fa7d91a0980d8914540628a915c32d6","tarball":"https://registry.npmjs.org/dom-resize/-/dom-resize-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlbUqrp3Y8xCOnlckvNbEDtYDDJoSBITwXh0MCmrJSvgIhAL3zDylvxWggwo1JnvrKf9VBYnWxcW6Ly8x4tAhLoQeQ"}]},"maintainers":[{"name":"drcmda","email":"drcmda@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-resize-1.0.0.tgz_1499861489089_0.8102890457957983"}},"1.0.2":{"name":"dom-resize","description":"Polyfill to make it easy to listen for element resize events","version":"1.0.2","author":"","bugs":{"url":"https://github.com/drcmda/dom-resize/issues"},"homepage":"https://github.com/drcmda/dom-resize","keywords":["event","resize","element-query","element queries"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/drcmda/dom-resize.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"65507c7cc4ed0f491558e8d1ec26b1aad4d74dd8","_id":"dom-resize@1.0.2","_npmVersion":"5.2.0","_nodeVersion":"8.1.4","_npmUser":{"name":"drcmda","email":"drcmda@gmail.com"},"dist":{"integrity":"sha512-sBMUhonQKslxovmh40DLJ28mZE2p8BtqQgHDmJOsVnnMxQjXsfOodjsReHuPzlCvS2+y+QKA1tRVn3mc2Gwz6Q==","shasum":"97a10eacf76e73d72b3a559de670b09c417ce309","tarball":"https://registry.npmjs.org/dom-resize/-/dom-resize-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChFvGoWE729dQVJRMcZC64taTMpoX/JmW9zfIcM8oPIAIgE+0byQbH4A/i7tLlr6Lws0RG7OP2IJmwu37GrYzOLnw="}]},"maintainers":[{"name":"drcmda","email":"drcmda@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-resize-1.0.2.tgz_1499862881489_0.573945650132373"}},"1.0.3":{"name":"dom-resize","description":"Polyfill to make it easy to listen for element resize events","version":"1.0.3","author":"","bugs":{"url":"https://github.com/drcmda/dom-resize/issues"},"homepage":"https://github.com/drcmda/dom-resize","keywords":["event","resize","element-query","element queries"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/drcmda/dom-resize.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"fdeee7bf8660e40544915cc687d6b3548cfa38e3","_id":"dom-resize@1.0.3","_npmVersion":"5.2.0","_nodeVersion":"8.1.4","_npmUser":{"name":"drcmda","email":"drcmda@gmail.com"},"dist":{"integrity":"sha512-lohasnGy9LABj1Sq7ZPUGIWSYf+4LFUwL0Aev+dAzxSzUiovc+lKnFyrc6M2TycMIoH7674kwKaucRIPZPgJXw==","shasum":"df9d71e808171fdb66ee88517b0d1c02cdb98876","tarball":"https://registry.npmjs.org/dom-resize/-/dom-resize-1.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC61pOonwHMyg0LyWGRvz0PUNG6CEn/mmJ4fO2dzBSYTgIhAOYp9Djin/GEK6xYXwauUmhZwAzPujdEZ9QhtdJBc8OQ"}]},"maintainers":[{"name":"drcmda","email":"drcmda@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-resize-1.0.3.tgz_1499863388712_0.8589789443649352"}}},"readme":"Library to make it easy to listen for element resize events\n\nForked from: https://github.com/KyleAMathews/element-resize-event\n\n## Install\n`npm install dom-resize`\n\n## Dependencies\nThis library depends on the availability of `requestAnimationFrame` and `cancelAnimationFrame`\n\n## Usage\n```javascript\nimport { resizeListen, resizeUnlisten } from 'dom-resize'\n\nconst target = document.getElementById(\"target\")\n\n// Subscribe to resize event\nresizeListen(target, () => {\n  console.log(\"resized!\");\n  console.log(target.offsetWidth);\n});\n\n// Unsubscribe event\nresizeUnlisten(target)\n```\n","maintainers":[{"name":"drcmda","email":"drcmda@gmail.com"}],"time":{"modified":"2022-04-29T02:24:28.437Z","created":"2017-07-12T12:11:31.145Z","1.0.0":"2017-07-12T12:11:31.145Z","1.0.2":"2017-07-12T12:34:42.474Z","1.0.3":"2017-07-12T12:43:09.681Z"},"homepage":"https://github.com/drcmda/dom-resize","keywords":["event","resize","element-query","element queries"],"repository":{"type":"git","url":"git+https://github.com/drcmda/dom-resize.git"},"bugs":{"url":"https://github.com/drcmda/dom-resize/issues"},"license":"MIT","readmeFilename":"README.md"}