1 line
2.9 KiB
JSON
1 line
2.9 KiB
JSON
{"_id":"backo2","_rev":"5-3acbb534f86b3cb3a2ba2a75bfed8453","name":"backo2","description":"simple backoff based on segmentio/backo","dist-tags":{"latest":"1.0.2"},"versions":{"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","tarball":"https://registry.npmjs.org/backo2/-/backo2-1.0.1.tgz"},"directories":{}},"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","tarball":"https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz"},"directories":{}}},"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","maintainers":[{"name":"mokesmokes","email":"mokesmokes@gmail.com"}],"time":{"modified":"2016-12-04T18:40:13.967Z","created":"2014-11-22T21:57:18.558Z","1.0.1":"2014-11-22T21:57:18.558Z","1.0.2":"2014-11-23T06:10:58.817Z"},"homepage":"https://github.com/mokesmokes/backo","keywords":["backoff"],"repository":{"type":"git","url":"https://github.com/mokesmokes/backo"},"bugs":{"url":"https://github.com/mokesmokes/backo/issues"},"license":"MIT","readmeFilename":"Readme.md","users":{"manikantag":true},"_attachments":{},"_etag":"W/\"5844630d-b61\"","_lastModified":"Sun, 04 Dec 2016 18:40:13 GMT","_cached":true} |