{"_id":"resizelistener","_rev":"8-4de72d725f8dd484e062cdd3b7087e8e","name":"resizelistener","description":"add listener for element resize without pulling","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.1":{"name":"resizelistener","version":"0.0.1","description":"Attach resize event listener(s) to element without polling.","main":"src/index.js","directories":{"test":"test"},"scripts":{"test":"make test-coveralls"},"repository":{"type":"git","url":"git+ssh://git@github.com/chemzqm/onresize.git"},"keywords":["resize"],"author":{"name":"chemzqm@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/chemzqm/onresize/issues"},"homepage":"https://github.com/chemzqm/onresize#readme","devDependencies":{"coveralls":"^2.11.4","growl":"^1.8.1","gulp":"^3.9.0","gulp-live-serve":"^1.0.0","gulp-livereload":"^3.8.1","gulp-util":"^3.0.7","html-loader":"^0.4.0","istanbul":"^0.4.0","istanbul-instrumenter-loader":"^0.2.0","json-loader":"^0.5.3","karma":"^0.13.15","karma-cli":"^0.1.2","karma-coverage":"^0.5.3","karma-firefox-launcher":"^0.1.6","karma-mocha":"^1.0.1","karma-webpack":"^1.7.0","karma-wrap-preprocessor":"^0.1.0","mocha":"^2.3.3","mocha-loader":"^0.7.1","mocha-notify":"0.0.4","webpack":"^1.12.6","webpack-dev-server":"^1.12.1"},"dependencies":{"component-raf":"^1.2.0"},"browser":{"raf":"component-raf"},"gitHead":"2cd16907ea9091056ee63fa2462d4dd347d40450","_id":"resizelistener@0.0.1","_shasum":"21fafee44d9f6da0929391d7318e9a1fcf0206b9","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"chemzqm","email":"chemzqm@gmail.com"},"dist":{"shasum":"21fafee44d9f6da0929391d7318e9a1fcf0206b9","tarball":"https://registry.npmjs.org/resizelistener/-/resizelistener-0.0.1.tgz","integrity":"sha512-0DfgoaFwUTQUxtDnKVbVY4W/nnApw+Xt/d3CyZU5z/ZeR2mbzFrbrxj4Tz8ChTq5oPYEKq0whBGwGEVFQs/bhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGca7tkXAjRD4ku7aaglf6Le1UJumZhofbAhFt4Q4NsFAiA5s6Dpf0OFQing96yIef0/TGNQiazfpBML67G+YCByRw=="}]},"maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/resizelistener-0.0.1.tgz_1463827587395_0.0912522308062762"}},"0.0.2":{"name":"resizelistener","version":"0.0.2","description":"[![NPM version](https://img.shields.io/npm/v/resizelistener.svg?style=flat-square)](https://www.npmjs.com/package/resizelistener) [![Dependency Status](https://img.shields.io/david/chemzqm/onresize.svg?style=flat-square)](https://david-dm.org/chemzqm/onre","main":"src/index.js","directories":{"test":"test"},"scripts":{"test":"make test-coveralls"},"repository":{"type":"git","url":"git+ssh://git@github.com/chemzqm/onresize.git"},"keywords":["resize"],"author":{"name":"chemzqm@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/chemzqm/onresize/issues"},"homepage":"https://github.com/chemzqm/onresize#readme","devDependencies":{"coveralls":"^2.11.4","growl":"^1.8.1","gulp":"^3.9.0","gulp-live-serve":"^1.0.0","gulp-livereload":"^3.8.1","gulp-util":"^3.0.7","html-loader":"^0.4.0","istanbul":"^0.4.0","istanbul-instrumenter-loader":"^0.2.0","json-loader":"^0.5.3","karma":"^0.13.15","karma-cli":"^0.1.2","karma-coverage":"^0.5.3","karma-firefox-launcher":"^0.1.6","karma-mocha":"^1.0.1","karma-webpack":"^1.7.0","karma-wrap-preprocessor":"^0.1.0","mocha":"^2.3.3","mocha-loader":"^0.7.1","mocha-notify":"0.0.4","webpack":"^1.12.6","webpack-dev-server":"^1.12.1"},"dependencies":{"component-raf":"^1.2.0","once":"^1.3.3"},"browser":{"raf":"component-raf"},"gitHead":"72519f33fdf8934c15eed2f66772de02b74ebccd","_id":"resizelistener@0.0.2","_shasum":"0687b4a05d90d6caf2148eb7a9a197052e56514c","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"chemzqm","email":"chemzqm@gmail.com"},"dist":{"shasum":"0687b4a05d90d6caf2148eb7a9a197052e56514c","tarball":"https://registry.npmjs.org/resizelistener/-/resizelistener-0.0.2.tgz","integrity":"sha512-QAWQmaayyyGl+/56ilGq6yHjA/bdrH7OJa9imPNcsAjc/NOhkn57ifUerkhrIv1+UVVmEmgXOYavlFQUYsuWhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAsLYgqT2TcaOsAE20Anu5ToKpwLcdylfm43+BNZJ3l8AiBwxQF6kV94hRt5CaGr19UVEqP55HWExuSLf/+219te+Q=="}]},"maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/resizelistener-0.0.2.tgz_1463832153720_0.7585836537182331"}},"0.0.3":{"name":"resizelistener","version":"0.0.3","description":"add listener for element resize without pulling","main":"src/index.js","directories":{"test":"test"},"scripts":{"test":"make test-coveralls"},"repository":{"type":"git","url":"git+ssh://git@github.com/chemzqm/onresize.git"},"keywords":["resize"],"author":{"name":"chemzqm@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/chemzqm/onresize/issues"},"homepage":"https://github.com/chemzqm/onresize#readme","devDependencies":{"coveralls":"^2.11.4","growl":"^1.8.1","gulp":"^3.9.0","gulp-live-serve":"^1.0.0","gulp-livereload":"^3.8.1","gulp-util":"^3.0.7","html-loader":"^0.4.0","istanbul":"^0.4.0","istanbul-instrumenter-loader":"^0.2.0","json-loader":"^0.5.3","karma":"^0.13.15","karma-cli":"^0.1.2","karma-coverage":"^0.5.3","karma-firefox-launcher":"^0.1.6","karma-mocha":"^1.0.1","karma-webpack":"^1.7.0","karma-wrap-preprocessor":"^0.1.0","mocha":"^2.3.3","mocha-loader":"^0.7.1","mocha-notify":"0.0.4","webpack":"^1.12.6","webpack-dev-server":"^1.12.1"},"dependencies":{"component-raf":"^1.2.0","once":"^1.3.3"},"browser":{"raf":"component-raf"},"gitHead":"a710209718edc42cd6b7459885e61ad6bbc7257c","_id":"resizelistener@0.0.3","_shasum":"d558b59ab36bc688252ceb3e2f6303ee3ed54030","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"chemzqm","email":"chemzqm@gmail.com"},"dist":{"shasum":"d558b59ab36bc688252ceb3e2f6303ee3ed54030","tarball":"https://registry.npmjs.org/resizelistener/-/resizelistener-0.0.3.tgz","integrity":"sha512-8kmOrgRbyyuLHQgtH79p3yRlbtzE31j+el7IneZW6ko/AdFpPyBS5UKu9vfuhCsqO/rZCG2JDqPv16k51hT/bw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNcR5kMkq4NwSlArw+0Xn3z10tM31SIiMt0lvmw3cRQwIhALoq3tq+EnMODWdkXLBdi6QeIqT1Xi98A2hLIHlY/Pu2"}]},"maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/resizelistener-0.0.3.tgz_1463996133252_0.48557018814608455"}},"1.0.0":{"author":{"name":"chemzqm@gmail.com"},"bugs":{"url":"https://github.com/chemzqm/onresize/issues"},"dependencies":{},"description":"add listener for element resize without pulling","devDependencies":{"coveralls":"^2.11.4","growl":"^1.8.1","gulp":"^3.9.0","gulp-live-serve":"^1.0.0","gulp-livereload":"^3.8.1","gulp-util":"^3.0.7","html-loader":"^0.4.0","istanbul":"^0.4.0","istanbul-instrumenter-loader":"^0.2.0","json-loader":"^0.5.3","karma":"^0.13.15","karma-cli":"^0.1.2","karma-coverage":"^0.5.3","karma-firefox-launcher":"^0.1.6","karma-mocha":"^1.0.1","karma-webpack":"^1.7.0","karma-wrap-preprocessor":"^0.1.0","mocha":"^2.3.3","mocha-loader":"^0.7.1","mocha-notify":"0.0.4","webpack":"^1.12.6","webpack-dev-server":"^1.12.1"},"directories":{"test":"test"},"homepage":"https://github.com/chemzqm/onresize#readme","keywords":["resize"],"license":"MIT","main":"src/index.js","name":"resizelistener","repository":{"type":"git","url":"git+ssh://git@github.com/chemzqm/onresize.git"},"scripts":{"test":"make test-coveralls"},"version":"1.0.0","_id":"resizelistener@1.0.0","_npmVersion":"5.0.4","_nodeVersion":"6.9.1","_npmUser":{"name":"chemzqm","email":"chemzqm@gmail.com"},"dist":{"integrity":"sha512-h0shjU5zI5j9STfUBhJxK8OtNsSTWPNjqlrDolbc9AoWM40v4gjXzvH1yfJSDvnofnO1zQ5jMPj9NNzluhJyhg==","shasum":"87610788b4bb6bcb51f53ede5e4148006ada00fc","tarball":"https://registry.npmjs.org/resizelistener/-/resizelistener-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCovTYxRjXh3t4VSQKOy0PKRrxOKz1qA1ojP+TIPFka+gIhAL57dzALFSUkDmlfz1mUKkSzVo9wvSUmZQYI/sDbNFdP"}]},"maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resizelistener-1.0.0.tgz_1502100146255_0.6901688894722611"}},"1.1.0":{"author":{"name":"chemzqm@gmail.com"},"bugs":{"url":"https://github.com/chemzqm/onresize/issues"},"dependencies":{},"description":"add listener for element resize without pulling","devDependencies":{"coveralls":"^2.11.4","growl":"^1.8.1","gulp":"^3.9.0","gulp-live-serve":"^1.0.0","gulp-livereload":"^3.8.1","gulp-util":"^3.0.7","html-loader":"^0.4.0","istanbul":"^0.4.0","istanbul-instrumenter-loader":"^0.2.0","json-loader":"^0.5.3","karma":"^0.13.15","karma-cli":"^0.1.2","karma-coverage":"^0.5.3","karma-firefox-launcher":"^0.1.6","karma-mocha":"^1.0.1","karma-webpack":"^1.7.0","karma-wrap-preprocessor":"^0.1.0","mocha":"^2.3.3","mocha-loader":"^0.7.1","mocha-notify":"0.0.4","webpack":"^1.12.6","webpack-dev-server":"^1.12.1"},"directories":{"test":"test"},"homepage":"https://github.com/chemzqm/onresize#readme","keywords":["resize"],"license":"MIT","main":"src/index.js","name":"resizelistener","repository":{"type":"git","url":"git+ssh://git@github.com/chemzqm/onresize.git"},"scripts":{"test":"make test-coveralls"},"version":"1.1.0","_id":"resizelistener@1.1.0","_npmVersion":"5.0.4","_nodeVersion":"6.9.1","_npmUser":{"name":"chemzqm","email":"chemzqm@gmail.com"},"dist":{"integrity":"sha512-PFRj7BEEXpTBi/QJr1dO9NBgRFg83W5JHzCAVkqJ/XlaDBPqBNZKR5lCKqLxIuObbykvdfYcLrQESwaV4qwL9w==","shasum":"17ae50ce66f725b60c7297573a29926796867e87","tarball":"https://registry.npmjs.org/resizelistener/-/resizelistener-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClpsZV0o8G1JndE5Z0HaVfZYtCvwkU54wTHS53VMDs2wIgYuHX26gnkb/rvNILgwacucQXh/zxGkcJNbGPJvs2Nx8="}]},"maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resizelistener-1.1.0.tgz_1502100225640_0.6732582123950124"}}},"readme":"# Onresize\n[![NPM version](https://img.shields.io/npm/v/resizelistener.svg?style=flat-square)](https://www.npmjs.com/package/resizelistener)\n[![Dependency Status](https://img.shields.io/david/chemzqm/onresize.svg?style=flat-square)](https://david-dm.org/chemzqm/onresize)\n[![Build Status](https://img.shields.io/travis/chemzqm/onresize/master.svg?style=flat-square)](http://travis-ci.org/chemzqm/onresize)\n\nAttach resize event listener(s) to element without polling.\n\nThe technique is originally from: http://www.backalleycoder.com/2013/03/18/cross-browser-event-based-element-resize-detection/\n\n**Notice** element would be set position to `relative` if it's position is\n`static`\n\n### Install\n\n    npm i resizelistener\n\n## API\n\n### Onresize(element, listener)\n\nCall listener function when ever element resizes, return a function could be\ncalled to unbind this listener.\n\n## LICENSE\n\n  Copyright 2016 chemzqm@gmail.com\n\n  Permission is hereby granted, free of charge, to any person obtaining\n  a copy of this software and associated documentation files (the \"Software\"),\n  to deal in the Software without restriction, including without limitation\n  the rights to use, copy, modify, merge, publish, distribute, sublicense,\n  and/or sell copies of the Software, and to permit persons to whom the\n  Software is furnished to do so, subject to the following conditions:\n\n  The above copyright notice and this permission notice shall be included\n  in all copies or substantial portions of the Software.\n\n  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n  OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE\n  OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}],"time":{"modified":"2022-06-26T11:50:56.211Z","created":"2016-05-21T10:46:27.875Z","0.0.1":"2016-05-21T10:46:27.875Z","0.0.2":"2016-05-21T12:02:35.992Z","0.0.3":"2016-05-23T09:35:35.507Z","1.0.0":"2017-08-07T10:02:26.852Z","1.1.0":"2017-08-07T10:03:45.712Z"},"homepage":"https://github.com/chemzqm/onresize#readme","keywords":["resize"],"repository":{"type":"git","url":"git+ssh://git@github.com/chemzqm/onresize.git"},"author":{"name":"chemzqm@gmail.com"},"bugs":{"url":"https://github.com/chemzqm/onresize/issues"},"license":"MIT","readmeFilename":"Readme.md"}