{"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":"http://registry-npm.ywwl.com/backo2/download/backo2-1.0.2.tgz","integrity":"sha512-zj6Z6M7Eq+PBZ7PQxl5NT665MvJdAkzp0f60nAJ+sLaSCBPMwVak5ZegFbgVCzFcCJTKFoMizvM5Ld7+JrRJHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFhFo4/BDgyID8uxykKNbMZJTIG5Ybtr//M1T5raPfh9AiBYfQFCrjvqZiLZrHW17dELqLMFxXFuTesUnAs3yYgDJg=="}],"size":1515,"noattachment":false,"key":"/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","publish_time":1416723058817,"_cnpm_publish_time":1416723058817,"dist-tags":{"latest":"1.0.2"}}