{"_id":"backo2","_rev":"16755","name":"backo2","description":"simple backoff based on segmentio/backo","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"mokesmokes","email":"mokesmokes@gmail.com"}],"time":{"modified":"2021-06-03T09:59:06.000Z","created":"2014-11-22T21:57:18.558Z","1.0.2":"2014-11-23T06:10:58.817Z","1.0.1":"2014-11-22T21:57:18.558Z"},"users":{"manikantag":true,"temasm":true,"sim04ful":true},"repository":{"type":"git","url":"https://github.com/mokesmokes/backo"},"versions":{"1.0.2":{"name":"backo2","version":"1.0.2","repository":{"type":"git","url":"https://github.com/mokesmokes/backo"},"description":"simple backoff based on segmentio/backo","keywords":["backoff"],"dependencies":{},"devDependencies":{"mocha":"*","should":"*"},"license":"MIT","gitHead":"3e695bade7756fef2295e8883bf3570a06e5d9ec","bugs":{"url":"https://github.com/mokesmokes/backo/issues"},"homepage":"https://github.com/mokesmokes/backo","_id":"backo2@1.0.2","scripts":{},"_shasum":"31ab1ac8b129363463e35b3ebb69f4dfcfba7947","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"mokesmokes","email":"mokesmokes@gmail.com"},"maintainers":[{"name":"mokesmokes","email":"mokesmokes@gmail.com"}],"dist":{"shasum":"31ab1ac8b129363463e35b3ebb69f4dfcfba7947","size":1515,"noattachment":false,"key":"/backo2/-/backo2-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/backo2/download/backo2-1.0.2.tgz"},"directories":{},"publish_time":1416723058817,"_cnpm_publish_time":1416723058817,"_hasShrinkwrap":false},"1.0.1":{"name":"backo2","version":"1.0.1","repository":{"type":"git","url":"https://github.com/mokesmokes/backo"},"description":"simple backoff based on segmentio/backo","keywords":["backoff"],"dependencies":{},"devDependencies":{"mocha":"*","should":"*"},"license":"MIT","gitHead":"de41fb05d1ce94b82e3b1df827fa25511a95b779","bugs":{"url":"https://github.com/mokesmokes/backo/issues"},"homepage":"https://github.com/mokesmokes/backo","_id":"backo2@1.0.1","scripts":{},"_shasum":"2e4bd2ed1b9c09b4bd9fe6773f64755dda605abf","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"mokesmokes","email":"mokesmokes@gmail.com"},"maintainers":[{"name":"mokesmokes","email":"mokesmokes@gmail.com"}],"dist":{"shasum":"2e4bd2ed1b9c09b4bd9fe6773f64755dda605abf","size":1513,"noattachment":false,"key":"/backo2/-/backo2-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/backo2/download/backo2-1.0.1.tgz"},"directories":{},"publish_time":1416693438558,"_cnpm_publish_time":1416693438558,"_hasShrinkwrap":false}},"readme":"# backo\n\n  Simple exponential backoff because the others seem to have weird abstractions.\n\n## Installation\n\n```\n$ npm install backo\n```\n\n## Options\n\n - `min` initial timeout in milliseconds [100]\n - `max` max timeout [10000]\n - `jitter` [0]\n - `factor` [2]\n\n## Example\n\n```js\nvar Backoff = require('backo');\nvar backoff = new Backoff({ min: 100, max: 20000 });\n\nsetTimeout(function(){\n  something.reconnect();\n}, backoff.duration());\n\n// later when something works\nbackoff.reset()\n```\n\n# License\n\n  MIT\n","_attachments":{},"homepage":"https://github.com/mokesmokes/backo","bugs":{"url":"https://github.com/mokesmokes/backo/issues"},"license":"MIT"}