{"_id":"javascript-debounce","_rev":"5-51335114a2462e87820fb0de826c993d","name":"javascript-debounce","description":"A lightweight, dependency-free JavaScript module for debouncing functions based on David Walsh's debounce function.","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"javascript-debounce","version":"1.0.0","description":"A lightweight, dependency-free JavaScript module for debouncing functions based on David Walsh's debounce function.","main":"dist/javascript-debounce.js","scripts":{"build":"./scripts/build.js; ./scripts/stats.js","stats":"./scripts/stats.js"},"repository":{"type":"git","url":"git+https://github.com/jgarber623/javascript-debounce.git"},"keywords":["accessibility","aria","javascript"],"author":{"name":"Jason Garber","email":"jason@sixtwothree.org","url":"http://sixtwothree.org"},"license":"MIT","bugs":{"url":"https://github.com/jgarber623/javascript-debounce/issues"},"homepage":"https://github.com/jgarber623/javascript-debounce","devDependencies":{"cli-table":"^0.3.1","colors":"^1.1.2","gzip-size":"^3.0.0","uglify-js":"^2.4.24"},"gitHead":"711e77cd1fc1c04a7a838f293710351c45c955df","_id":"javascript-debounce@1.0.0","_shasum":"6c7fc8485e73faa422fe5a96351edb257fb0a400","_from":".","_npmVersion":"2.13.3","_nodeVersion":"0.12.7","_npmUser":{"name":"jgarber","email":"jason@sixtwothree.org"},"maintainers":[{"name":"jgarber","email":"jason@sixtwothree.org"}],"dist":{"shasum":"6c7fc8485e73faa422fe5a96351edb257fb0a400","tarball":"https://registry.npmjs.org/javascript-debounce/-/javascript-debounce-1.0.0.tgz","integrity":"sha512-sepVeBtuaz/ZflD2/J2nYKpcx3RZWXlIfCo5/1hxHY4YxDhkNTqlE9YpUBMr1Gkz3xsrj/v/gjY6t7B9m/ua2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+z73nCxo1Un2pKUYzoaz6Inv3FMD55eOG7QaJ+GUhAAIgVTlwl7OZkZXgD4WyMria4sJcFPjmYfiSsm0eAUXCPMo="}]},"directories":{}},"1.0.1":{"name":"javascript-debounce","version":"1.0.1","description":"A lightweight, dependency-free JavaScript module for debouncing functions based on David Walsh's debounce function.","main":"dist/javascript-debounce.js","scripts":{"build":"./scripts/build.js; ./scripts/stats.js","stats":"./scripts/stats.js"},"repository":{"type":"git","url":"git+https://github.com/jgarber623/javascript-debounce.git"},"keywords":["accessibility","aria","javascript"],"author":{"name":"Jason Garber","email":"jason@sixtwothree.org","url":"http://sixtwothree.org"},"license":"MIT","bugs":{"url":"https://github.com/jgarber623/javascript-debounce/issues"},"homepage":"https://github.com/jgarber623/javascript-debounce","devDependencies":{"cli-table":"^0.3.1","colors":"^1.1.2","comma-number":"^1.1.0","gzip-size":"^3.0.0","uglify-js":"^2.4.24"},"gitHead":"92f7c6fb8d2e0f7ce80248cd26fd6cc933de5ddf","_id":"javascript-debounce@1.0.1","_nodeVersion":"11.13.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-3IkTDsqLkrOEfLjTl2rNvPDtjVriwRbWQ+KcKawXnYwqiZMjEwLTp+X8zzDkGONnKlH4gsorF0NHvowV1zhmsQ==","shasum":"bca6b6a99475927a39910d3ff70a67dce10c6462","tarball":"https://registry.npmjs.org/javascript-debounce/-/javascript-debounce-1.0.1.tgz","fileCount":11,"unpackedSize":12288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJco4BzCRA9TVsSAnZWagAANh8P/2HxsWqDSSMLOuUiytW6\nW1MlKz+e58Ck8riJJ6I2wK2JD48t27pEPSiWNnKd7xjGem1Ss36YGHnU/Aqf\nv6fq+A4s5H/0dcjW87VGPPJjSXvNLDj4wcgDj8bZX12/t/XWpwHQnoHfHqp0\nOstraIXnhXJzVm0GEZgNzar5wkn7T1L++MTMXw3Yw7u9HfGjSSZd/zck4mNv\n/pScLF4T+yO0V2OhnRLmqD7jNP+eFn3UdA/y4yR/BXooaEJh7ulFCADPdsu4\nca54Kqikw6bUZDwWsfDMNxAIGYv4oJSa1+Zo67pyprpD2qypro3VQMn/6D+O\nAonPrY8nVfsavuYU5guXB9GI9fRf2Vl2P8ylKHvBY590w6YVW4jeWE0f0dJ8\nvGQH7+WHjDGqtc4eldJqpnPk03b2cMK/7U60V3p0iERJw7nKMmM9gSiNxhS6\ne4v6YhgBKia/95WarhyAx8sJmM1yofvTpYA+FyxL1IQIFaYN4AHRXqYbsWKt\nk4QEG3XC3NAjWNfLZUUEPjgasid0a/Dy2YUzuvW7fQvIPlqjglaBD7azyGvt\nHexjIO4oxkZgQgk6y6OiM3fbloV+Gd79HdtTM+H5CfbG31sDOVRsw/K5PiK6\nokb/7/xviP4IRU45fWaU+aQN+Vby0/Ptgk/fWrl0MF9JiKHiYw34Qyoue5QL\nQ6a6\r\n=KEXp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmOftgm8XfAY+gieNQtC/VuAn6t/BAg/yu6TbaSVLq8QIgCJeDUtl3im69JtxU9jo8vKCRNXBdGX2PmboCsPmo2g8="}]},"maintainers":[{"name":"jgarber","email":"jason@sixtwothree.org"}],"_npmUser":{"name":"jgarber","email":"jason@sixtwothree.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/javascript-debounce_1.0.1_1554219122558_0.09812612562200229"},"_hasShrinkwrap":false}},"readme":"# javascript-debounce\n\n[![npm version](https://badge.fury.io/js/javascript-debounce.svg)](https://badge.fury.io/js/javascript-debounce)\n\nA lightweight, dependency-free JavaScript module for debouncing functions based on [David Walsh's debounce function](http://davidwalsh.name/javascript-debounce-function).\n\n### Key Features\n\n- Dependency-free\n- AMD/CommonJS module support\n\njavascript-debounce is also really tiny:\n\n<table>\n\t<tbody>\n\t\t<tr>\n\t\t\t<th>Uncompressed</th>\n\t\t\t<td>909 bytes</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th>Minified</th>\n\t\t\t<td>664 bytes</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th>Minified and gzipped</th>\n\t\t\t<td>406 bytes</td>\n\t\t</tr>\n\t</tbody>\n</table>\n\n\n## Getting javascript-debounce\n\nAdding javascript-debounce to your project is easy! You've got a couple options:\n\n- [Download a tagged version](https://github.com/jgarber623/javascript-debounce/tags) from GitHub and do it yourself _(old school)_.\n- Install via [Bower](http://bower.io/): `bower install javascript-debounce`\n- Install via [npm](https://www.npmjs.com/): `npm install javascript-debounce`\n\n\n## Usage\n\n### `debounce(callback, delay)`\n\n#### `callback`\n\nType: `Function`\n\nA function to be executed after `delay` milliseconds.\n\n#### `delay`\n\nType: `Number`\n\nThe delay, in milliseconds, after the final event invokation at which time `callback` will be fired.\n\n### Example\n\n```js\nif ('addEventListener' in window) {\n    var handleResize = debounce(function() {\n        console.log('This method fired 250ms after the resize event was last invoked.');\n    }, 250);\n\n    window.addEventListener('resize', handleResize);\n}\n```\n\n## Acknowledgments\n\njavascript-debounce is based on David Walsh's code and article [JavaScript Debounce Function](http://davidwalsh.name/javascript-debounce-function). His site is an invaluable resource for Web developers.\n\njavascript-debounce is written and maintained by [Jason Garber](https://sixtwothree.org/) with the help of [some great contributors](https://github.com/jgarber623/javascript-debounce/graphs/contributors).\n\n\n## License\n\njavascript-debounce is freely available under [The MIT License](http://opensource.org/licenses/MIT). Go forth and make the Web a more accessible place.\n","maintainers":[{"name":"jgarber","email":"jason@sixtwothree.org"}],"time":{"modified":"2022-06-19T03:52:15.084Z","created":"2015-08-20T13:52:37.828Z","1.0.0":"2015-08-20T13:52:37.828Z","1.0.1":"2019-04-02T15:32:02.679Z"},"homepage":"https://github.com/jgarber623/javascript-debounce","keywords":["accessibility","aria","javascript"],"repository":{"type":"git","url":"git+https://github.com/jgarber623/javascript-debounce.git"},"author":{"name":"Jason Garber","email":"jason@sixtwothree.org","url":"http://sixtwothree.org"},"bugs":{"url":"https://github.com/jgarber623/javascript-debounce/issues"},"license":"MIT","readmeFilename":"README.md"}