{"_id":"redux-debounce","_rev":"6-3a15ca3c9f30da684a33a0354fcacd94","name":"redux-debounce","description":"FSA-compliant middleware for Redux to debounce actions.","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"redux-debounce","version":"1.0.0","description":"A middleware for Redux to debounce actions.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/wyze/redux-debounce.git"},"author":{"name":"Neil Kistner","email":"neil.kistner@gmail.com","url":"neilkistner.com"},"main":"lib/index.js","engines":{"node":">=0.12.0"},"scripts":{"build":"babel src --out-dir lib","coverage":"nyc report -r text-lcov | codecov","prebuild":"rimraf lib && eslint src","pretest":"npm run build","test":"nyc ava","test:watch":"watch 'npm test' src test -d"},"files":["lib","license","package.json","readme.md"],"keywords":["redux","debounce","middleware","redux-middleware","fsa","flux"],"dependencies":{"flux-standard-action":"^0.6.0","lodash.debounce":"^3.1.1","lodash.mapvalues":"^3.0.1"},"devDependencies":{"ava":"^0.7.0","babel":"^5.8.34","babel-eslint":"^4.1.6","codecov.io":"^0.1.6","eslint":"^1.10.3","eslint-config-airbnb":"^2.0.0","nyc":"^4.0.1","rimraf":"^2.4.4","sinon":"^1.17.2","watch":"^0.16.0"},"config":{"nyc":{"require":["babel/polyfill","babel/register"]}},"gitHead":"3b23493efe29c04244b6d84ca44d010a440eb45c","bugs":{"url":"https://github.com/wyze/redux-debounce/issues"},"homepage":"https://github.com/wyze/redux-debounce#readme","_id":"redux-debounce@1.0.0","_shasum":"6bab62f0665a352380dec4581c5804a5fbd2dd4b","_from":".","_npmVersion":"3.3.6","_nodeVersion":"4.2.1","_npmUser":{"name":"wyze","email":"neil.kistner@gmail.com"},"dist":{"shasum":"6bab62f0665a352380dec4581c5804a5fbd2dd4b","tarball":"https://registry.npmjs.org/redux-debounce/-/redux-debounce-1.0.0.tgz","integrity":"sha512-FONHMcRGmp8CvvUOjK1H9EIOnmnG9lK25bD07uJZHzbqQkEIgWbSkZgBOseyiETostEVo2sove38Pcm/jqHk1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHtBqxHFmYhTpWptROmsJrRWmz+VvuM/4f1PWwvRICwwAiAT1Rj1K/OEPPAhZyvytnaMcmHNAQ17ElrCMaBbNSVmBQ=="}]},"maintainers":[{"name":"wyze","email":"neil.kistner@gmail.com"}]},"1.0.1":{"name":"redux-debounce","version":"1.0.1","description":"FSA-compliant middleware for Redux to debounce actions.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/wyze/redux-debounce.git"},"author":{"name":"Neil Kistner","email":"neil.kistner@gmail.com","url":"neilkistner.com"},"main":"lib/index.js","engines":{"node":">=0.12.0"},"scripts":{"build":"babel src --out-dir lib","clean":"rimraf .nyc_output coverage lib","coverage":"nyc report -r text-lcov | codecov","lint":"eslint src test","prebuild":"npm run lint","pretest":"npm run clean && npm run build","test":"nyc ava","test:watch":"npm test -- --watch"},"ava":{"babel":"inherit","require":["babel-register"]},"babel":{"presets":["es2015","stage-2"]},"eslintConfig":{"extends":"wyze/base"},"files":["lib","license","package.json","readme.md"],"keywords":["redux","debounce","middleware","redux-middleware","fsa","flux"],"dependencies":{"flux-standard-action":"^0.6.1","lodash.debounce":"^4.0.6","lodash.mapvalues":"^4.3.0"},"devDependencies":{"ava":"^0.14.0","babel-cli":"^6.7.5","babel-eslint":"^6.0.2","babel-preset-es2015":"^6.6.0","babel-preset-stage-2":"^6.5.0","babel-register":"^6.7.2","codecov.io":"^0.1.6","eslint":"^2.8.0","eslint-config-wyze":"^1.3.0","nyc":"^6.4.0","rimraf":"^2.5.2","sinon":"^1.17.3"},"gitHead":"7ae729e4a546fa60983bbeaa5862a5f4c795e1c5","bugs":{"url":"https://github.com/wyze/redux-debounce/issues"},"homepage":"https://github.com/wyze/redux-debounce#readme","_id":"redux-debounce@1.0.1","_shasum":"76a70953fbb3f89e9fd40c390674aceef400d105","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.2.6","_npmUser":{"name":"wyze","email":"neil.kistner@gmail.com"},"dist":{"shasum":"76a70953fbb3f89e9fd40c390674aceef400d105","tarball":"https://registry.npmjs.org/redux-debounce/-/redux-debounce-1.0.1.tgz","integrity":"sha512-5BA48XrsDyHhMlqKibRrxNkXZ0HfAeCMN3meshry1HqmtJm9z8ruFG6Ad6m+yv4wHbqupjlToCguUngpxcdS5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZK1+Gl5jq7yhHsCk/VYEujPBz3FA5wRCCwG2x2lMp4AIgCumcpCG55gX3Ijp9OvroP1ef0hCYhnuwSUy6ZBkjwNQ="}]},"maintainers":[{"name":"wyze","email":"neil.kistner@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/redux-debounce-1.0.1.tgz_1460948704338_0.4526937324553728"}}},"readme":"# redux-debounce\n\n[![Build Status][travis-image]][travis-url]\n[![npm][npm-image]][npm-url]\n[![Codecov.io][codecov-image]][codecov-url]\n\n> FSA-compliant middleware for Redux to debounce actions.\n\n## Installation\n\n```sh\n$ npm install --save redux-debounce\n```\n\n## Usage\n\n```javascript\n// Store setup\nimport { applyMiddleware, createStore } from 'redux'\nimport createDebounce from 'redux-debounce'\nimport createLogger from 'redux-logger'\nimport promise from 'redux-promise'\nimport thunk from 'redux-thunk'\n\nconst config = {\n  simple: 300\n}\n\nconst debouncer = createDebounce(config)\nconst logger = createLogger()\nconst createMiddleware = applyMiddleware(thunk, debouncer, promise, thunk)\nconst store = createMiddleware(createStore)(reducer)\n\nconst debounceAction = () => ({\n  meta: {\n    debounce: 'simple',\n  },\n  type: 'TEST',\n})\n```\n\nDebounce middleware **should be** placed near the top of the chain.\n\n### Example\n\nSee the example directory.\n\n```sh\n$ cd example\n$ npm install\n$ npm start\n```\n\n## API\n\n`redux-debounce` exposes single constructor function for creating debounce middleware.\n\n> createDebounce( options: Object )\n\n### Options\n\n> **Each option is a property to setup different debounces for different actions.**\n\n#### Number\n\nNumber of milliseconds to debounce the action for.\n\n#### Object\n\n##### wait (Number)\n\nNumber of milliseconds to debounce the action for.\n\n##### maxWait (Number)\n\nMaximum number of milliseconds before the action is called.\n\nSee [lodash][lodash-url] for the rest of the supported options.\n\n## License\n\nCopyright © 2015-2016 [Neil Kistner](//github.com/wyze)\n\nReleased under the MIT license. See [license](license) for details.\n\n[lodash-url]: https://lodash.com/docs#debounce\n\n[travis-image]: https://img.shields.io/travis/wyze/redux-debounce.svg?style=flat-square\n[travis-url]: https://travis-ci.org/wyze/redux-debounce\n\n[npm-image]: https://img.shields.io/npm/v/redux-debounce.svg?style=flat-square\n[npm-url]: https://npmjs.com/package/redux-debounce\n\n[codecov-image]: https://img.shields.io/codecov/c/github/wyze/redux-debounce.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/wyze/redux-debounce\n","maintainers":[{"name":"wyze","email":"neil.kistner@gmail.com"}],"time":{"modified":"2022-06-26T10:04:48.260Z","created":"2015-12-05T02:52:42.163Z","1.0.0":"2015-12-05T02:52:42.163Z","1.0.1":"2016-04-18T03:05:05.470Z"},"homepage":"https://github.com/wyze/redux-debounce#readme","keywords":["redux","debounce","middleware","redux-middleware","fsa","flux"],"repository":{"type":"git","url":"git+https://github.com/wyze/redux-debounce.git"},"author":{"name":"Neil Kistner","email":"neil.kistner@gmail.com","url":"neilkistner.com"},"bugs":{"url":"https://github.com/wyze/redux-debounce/issues"},"license":"MIT","readmeFilename":"readme.md","users":{}}