{"_id":"three-times","_rev":"48-0353167ed68bc3b14d9cfca4461b77be","name":"three-times","description":"Retry a function call","dist-tags":{"latest":"0.3.6"},"versions":{"0.1.0":{"name":"three-times","version":"0.1.0","description":"Retry a failed function call up to three times.","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha"},"keywords":["try","retry","times"],"author":"","license":"BSD-2-Clause","devDependencies":{"mocha":"~1.17.1"},"_id":"three-times@0.1.0","dist":{"shasum":"df51929aba16bf6b8af7953325a46b79725aa6f8","tarball":"https://registry.npmjs.org/three-times/-/three-times-0.1.0.tgz","integrity":"sha512-4Kp2wm7D8f1PLWqV+bkMRRIgiUesU8GiegigzNBqnrgbi4S8jVgk2QsN0y1/h+9sARRRP1TU02+ObYq96EYqGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBsV/R/w+XK3dz0S/91m64Ubp/FZmbBcsJTBAvnw6qigIgGFgDEQobtG1n3jPdubjzxCxq2lVE9dcXAvI7RH0paXg="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"davvo","email":"david.ershag@gmail.com"},"maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}]},"0.1.1":{"name":"three-times","version":"0.1.1","description":"Retry a function call.","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha"},"keywords":["try","retry","times"],"author":{"name":"davvo"},"license":"","devDependencies":{"mocha":"~1.17.1"},"_id":"three-times@0.1.1","dist":{"shasum":"90e4596833ade1a5e13813f099b0b08f20440d8b","tarball":"https://registry.npmjs.org/three-times/-/three-times-0.1.1.tgz","integrity":"sha512-sUz0/JGBjRRHgKu2/0NRoMoxD0ysCY0h1wgw8pxo3ULKULN4w/j6kooLeDDdWiJiLlrFlAjs7jEV0AMekZ+OQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBzkmI1WV5OO1zgWTxYSyTLpVfDoCYu/r7kgvn9SQyb6AiB2laPDsB9/fuGcOlSO2Wfu06sSZmSgnfWgJw2iWJTJhw=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"davvo","email":"david.ershag@gmail.com"},"maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}]},"0.1.2":{"name":"three-times","version":"0.1.2","description":"Retry a function call","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha"},"keywords":["try","retry","times"],"author":{"name":"David Ershag"},"license":"MIT","devDependencies":{"mocha":"~1.17.1"},"_id":"three-times@0.1.2","dist":{"shasum":"ee28bb93d3ead84a3eaaa8afa1489b1de6392cec","tarball":"https://registry.npmjs.org/three-times/-/three-times-0.1.2.tgz","integrity":"sha512-tssfL/m0yenCgHWHpU/xINfoMxlwwJGcefGtrCTqN7CrAqPVKalvp2J5M4htN4FkddnS01Cm4Pp6e8VqY/x7gQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9vqegLKFR4MH+bq8Rz/rpdZTLCcZgn+iwLhxGIhUS6wIgaymLfzr/apc1PbLNzwKGLq/nnmaC4bAjrCKZDXK9n58="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"davvo","email":"david.ershag@gmail.com"},"maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}]},"0.1.3":{"name":"three-times","version":"0.1.3","repository":{"type":"git","url":"https://github.com/davvo/three-times"},"description":"Retry a function call","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha"},"keywords":["try","retry","times"],"author":{"name":"David Ershag"},"license":"MIT","devDependencies":{"mocha":"~1.17.1"},"bugs":{"url":"https://github.com/davvo/three-times/issues"},"_id":"three-times@0.1.3","dist":{"shasum":"0e1bf0a51b9b5383df5c4b70fc1b619247176bba","tarball":"https://registry.npmjs.org/three-times/-/three-times-0.1.3.tgz","integrity":"sha512-J0qaJ1JHM4Plwc15QC0G/lZkbzPA0Vzgl0DIqYVbRAZIGSb+KEMLh/ywFbKPwPZMjCWNqldUhF5xIIa6J83ruA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHLVnM2G0mzEfzDQAmpXhbYJc4D23eVBUaDmDOaKTnEfAiAdn4uHbekbRqlD+o1BpjsxwDXcO1aYxC4+P/4JgIoBXw=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"davvo","email":"david.ershag@gmail.com"},"maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}]},"0.1.4":{"name":"three-times","version":"0.1.4","repository":{"type":"git","url":"https://github.com/davvo/three-times"},"description":"Retry a function call","main":"./lib/index.js","scripts":{"test":"./node_modules/mocha/bin/mocha"},"keywords":["try","retry","times"],"author":{"name":"David Ershag"},"license":"MIT","devDependencies":{"mocha":"~1.17.1"},"bugs":{"url":"https://github.com/davvo/three-times/issues"},"_id":"three-times@0.1.4","dist":{"shasum":"4dc6f3e519d4ab3b61c8731b24d79bcfa4a5bbfa","tarball":"https://registry.npmjs.org/three-times/-/three-times-0.1.4.tgz","integrity":"sha512-ZqaTDiNrZvf0PO1gC7fAcC8DD1DYVdpjoOKMAEt70B1LJ9HCk7y+Wjvx85JlqMXxAn9TCU6THicwRRYDRIXOoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwq7H477bErYlyFJFWvF0qFmr8X7gp1aG3YZY2nNqHXAIgKOekqZ1krDHd8HvLRjsFw0dl5wH6ku+ARSR9aYCsAsU="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"davvo","email":"david.ershag@gmail.com"},"maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}]},"0.2.0":{"name":"three-times","version":"0.2.0","repository":{"type":"git","url":"https://github.com/davvo/three-times"},"description":"Retry a function call","main":"./lib/index.js","scripts":{"test":"./node_modules/mocha/bin/mocha"},"keywords":["try","retry","times"],"author":{"name":"David Ershag"},"license":"MIT","devDependencies":{"mocha":"~1.17.1"},"bugs":{"url":"https://github.com/davvo/three-times/issues"},"_id":"three-times@0.2.0","dist":{"shasum":"1211ae38540d111d3bee15855f55a3b22c5d0df4","tarball":"https://registry.npmjs.org/three-times/-/three-times-0.2.0.tgz","integrity":"sha512-yJu2Luh4Q4M5huOZzapxxLyI/Et8daf6ynsA0PNPv3P+PLITTgCSOqYdD0TNE5PtBArAzvRiiv4I7LrbQWQE2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdGin08jXJ90mQVNX/+4f2Xh38LqpP+igelFg5tZsfEwIgfaB4NCEKmTr+FWlpeco8QSbVbCe/gkmkTLNirVR3vVg="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"davvo","email":"david.ershag@gmail.com"},"maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}]},"0.2.1":{"name":"three-times","version":"0.2.1","repository":{"type":"git","url":"https://github.com/davvo/three-times"},"description":"Retry a function call","main":"./lib/index.js","scripts":{"test":"./node_modules/mocha/bin/mocha"},"keywords":["try","retry","times"],"author":{"name":"David Ershag"},"license":"MIT","devDependencies":{"mocha":"~1.17.1"},"bugs":{"url":"https://github.com/davvo/three-times/issues"},"_id":"three-times@0.2.1","dist":{"shasum":"57b2b9f10d8bd048be29c1b52e54f2b060080244","tarball":"https://registry.npmjs.org/three-times/-/three-times-0.2.1.tgz","integrity":"sha512-l//sB5er/qKPK4jNDVSLO3WcQrCZq4Nr58gJAkxS6eAxGaP6JH6kwXcXaeIBuRnZukoR+OnFhXUgXg9fvBGBGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG3oWqCuZauXycW5r9ZHtU8NUwgxdBc/slxxrATq+Ty4AiATxG8Ckk8XwjL6JdkK9Yk9jvU6YHhYppY3zo9adlZLZw=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"davvo","email":"david.ershag@gmail.com"},"maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}]},"0.2.2":{"name":"three-times","version":"0.2.2","repository":{"type":"git","url":"https://github.com/davvo/three-times"},"description":"Retry a function call","main":"./lib/index.js","scripts":{"test":"./node_modules/mocha/bin/mocha"},"keywords":["try","retry","times"],"author":{"name":"David Ershag"},"license":"MIT","devDependencies":{"mocha":"~1.17.1"},"bugs":{"url":"https://github.com/davvo/three-times/issues"},"_id":"three-times@0.2.2","dist":{"shasum":"65c65842fd398e7073c0391588d9ffdfe420a2f3","tarball":"https://registry.npmjs.org/three-times/-/three-times-0.2.2.tgz","integrity":"sha512-zt8QkImnn8PlHJtf4LzTBotsAyzJj5FRCvsBk63Tnvwa+Ps8z+S8qiQ3YQ1H7HmITfz+21odCcPbh6StBdpBkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICVSs0wUG6InQWHF7EaTF5E4T4/DZiw+/s2ONf3cRLgpAiAG9U5BQQBtGMA98hgDmP6LRSFV98L1HD5GJfV0CjzCPA=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"davvo","email":"david.ershag@gmail.com"},"maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}]},"0.3.0":{"name":"three-times","version":"0.3.0","repository":{"type":"git","url":"https://github.com/davvo/three-times"},"description":"Retry a function call","main":"./lib/index.js","scripts":{"test":"./node_modules/mocha/bin/mocha"},"keywords":["try","retry","times"],"author":{"name":"David Ershag"},"license":"MIT","devDependencies":{"mocha":"~1.17.1"},"bugs":{"url":"https://github.com/davvo/three-times/issues"},"_id":"three-times@0.3.0","dist":{"shasum":"95f7bc2b7ed3e69731a3e0407a87c36adf0eabb1","tarball":"https://registry.npmjs.org/three-times/-/three-times-0.3.0.tgz","integrity":"sha512-jdA+Kn7dpiqLX1PF09uscApeXSxfe9WfiFXDmiWdUKYE/R+9D01jwrX47T9cSRK+dU8wM8gNbmobMLUggVtakQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF7SMpvj1w12oj0AUzIZb8BmQWb4tOTKu0oAE3GggKcBAiAOb3I/iza/3ZtJFRLCNmuXSJavi4w4XmpY8ZUrgClGug=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"davvo","email":"david.ershag@gmail.com"},"maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}]},"0.3.1":{"name":"three-times","version":"0.3.1","repository":{"type":"git","url":"https://github.com/davvo/three-times"},"description":"Retry a function call","main":"./lib/index.js","scripts":{"test":"./node_modules/mocha/bin/mocha"},"keywords":["try","retry","times"],"author":{"name":"David Ershag"},"license":"MIT","devDependencies":{"mocha":"~1.17.1"},"bugs":{"url":"https://github.com/davvo/three-times/issues"},"_id":"three-times@0.3.1","dist":{"shasum":"1946d2ca0f1677489a1b0445bb512b6fc6f3b15c","tarball":"https://registry.npmjs.org/three-times/-/three-times-0.3.1.tgz","integrity":"sha512-tkoQPGhdwxuQXxUSrhZpCBnHLCLiMJ09T3FXC4P2vWyKv4eNlhybUryyeQAE7/oirHTmrdLGrVrRX+QAF3kAVQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2wl0OUHo2IMaXqhbKwcIOtTB84sp2gcMRC0QhNWxNsQIgQo3JhjqUgPYxQQjmZEmgGS0uM9BClwiXO4FP4Aa+DDg="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"davvo","email":"david.ershag@gmail.com"},"maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}]},"0.3.2":{"name":"three-times","version":"0.3.2","repository":{"type":"git","url":"https://github.com/davvo/three-times"},"description":"Retry a function call","main":"./lib/index.js","scripts":{"test":"./node_modules/mocha/bin/mocha"},"keywords":["try","retry","times"],"author":{"name":"David Ershag"},"license":"MIT","devDependencies":{"mocha":"~1.17.1"},"bugs":{"url":"https://github.com/davvo/three-times/issues"},"_id":"three-times@0.3.2","dist":{"shasum":"611a49b3ae80303660da5047df3affe57ed807a4","tarball":"https://registry.npmjs.org/three-times/-/three-times-0.3.2.tgz","integrity":"sha512-WXW4ETOj4x5hsFj8MABtESSvL5JhnggMYwlwHgqLCbl7ME2XcitGmWdq1sb/ZzjO30OfHP7ZnFfWeV1iDmus5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICbgszQwJ2t+LL8GkD+r/360AagNMu8c1OTFXqfx84ccAiAnFCiryrlSKr2O6O2GxnV8jX1j/4JHQTGF7uwF0ySjoA=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"davvo","email":"david.ershag@gmail.com"},"maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}]},"0.3.3":{"name":"three-times","version":"0.3.3","repository":{"type":"git","url":"https://github.com/davvo/three-times"},"description":"Retry a function call","main":"./lib/index.js","scripts":{"test":"./node_modules/mocha/bin/mocha"},"keywords":["try","retry","times"],"author":{"name":"David Ershag"},"license":"MIT","devDependencies":{"mocha":"~1.17.1"},"bugs":{"url":"https://github.com/davvo/three-times/issues"},"_id":"three-times@0.3.3","dist":{"shasum":"360e8e826f7aa58a52861fce20689e3cdb91a5cc","tarball":"https://registry.npmjs.org/three-times/-/three-times-0.3.3.tgz","integrity":"sha512-UXyS9x/Gnt/TZIXHTHRzooPdeUtx67WCfzREVob70feSLURrGycMLYJmml7+o0KkxSbUrZbHwQbr3dV2EtxZhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLuqagMklOR6z/o7goElR7zrUdgyh1MVQGRzrKVR+JlgIhANZJG39CV5YnPRiq83mkegMFmPjmKYmEuaGjrhQM+e4w"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"davvo","email":"david.ershag@gmail.com"},"maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}]},"0.3.4":{"name":"three-times","version":"0.3.4","repository":{"type":"git","url":"https://github.com/davvo/three-times"},"description":"Retry a function call","main":"./lib/index.js","scripts":{"test":"./node_modules/mocha/bin/mocha"},"keywords":["try","retry","times"],"author":{"name":"David Ershag"},"license":"MIT","devDependencies":{"mocha":"~1.17.1"},"bugs":{"url":"https://github.com/davvo/three-times/issues"},"_id":"three-times@0.3.4","dist":{"shasum":"2684fec60e7873e521685de9bbd8513d352e27bb","tarball":"https://registry.npmjs.org/three-times/-/three-times-0.3.4.tgz","integrity":"sha512-qWGw4sjkrWDJP4aQDkCGf7QMfqfDhh394Xr4mA0bbODg4dMeEDG+mP5U7lU2JA01meHLD/U5i1Xq+QgxlawYng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDx3MccIgiXWmzHfmL+bihNTYHTncu2v9W/S1bblL+vSAIgJfsewbYthcb5iMUX2t0ZcdgFM+oSsdtuRIlsP2BIx80="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"davvo","email":"david.ershag@gmail.com"},"maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}]},"0.3.5":{"name":"three-times","version":"0.3.5","repository":{"type":"git","url":"https://github.com/davvo/three-times"},"description":"Retry a function call","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha"},"keywords":["try","retry","times"],"author":{"name":"David Ershag"},"license":"MIT","devDependencies":{"mocha":"~1.17.1"},"bugs":{"url":"https://github.com/davvo/three-times/issues"},"_id":"three-times@0.3.5","dist":{"shasum":"1bf3611712bbeeb98217abde60ab44a20895c19d","tarball":"https://registry.npmjs.org/three-times/-/three-times-0.3.5.tgz","integrity":"sha512-iYM7QiPvy+v3tztYjvbKwIKdzITkMjNu6MIsP101WbJI5/F8/jZji/2gXWrulXFB+qSP5f6CYnfZtRAYdSjNkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOeZNjvpEKo7yuieHS4qZSb7k/Wt2zInk6V+Oyk3EFbgIhAP326htPDhRDSs3YZxhwn/b0l9Z48rII5dJScKyU8d85"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"davvo","email":"david.ershag@gmail.com"},"maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}]},"0.3.6":{"name":"three-times","version":"0.3.6","repository":{"type":"git","url":"https://github.com/davvo/three-times"},"description":"Retry a function call","main":"./lib/three-times.js","scripts":{"test":"./node_modules/mocha/bin/mocha"},"keywords":["try","retry","times"],"author":{"name":"David Ershag"},"license":"MIT","devDependencies":{"mocha":"~1.17.1"},"bugs":{"url":"https://github.com/davvo/three-times/issues"},"_id":"three-times@0.3.6","dist":{"shasum":"27ab313cc16ae17784a157f1a0fff7bc20f05ccd","tarball":"https://registry.npmjs.org/three-times/-/three-times-0.3.6.tgz","integrity":"sha512-TIqwVYkyJ1sxmovQXnhuh4Wj+ebFIqZ+dxVojKjvPHuliQxMOC0fnF68NFqNiFt6yMYoYDtuYggtppEx2siynA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFwK6Z5ykW2CvyXX2XI2HvOe3q1gj9IY2LvDEasA7+qkAiAwBbvXIKhzxrZXFOWRBAwGZzuDkfHjOXuwoLM9smEo7Q=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"davvo","email":"david.ershag@gmail.com"},"maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}]}},"readme":"# three-times\nExecute a function up to three times before calling the callback with the last error.\n\n## Basic example\n```javascript\nvar retry = require('three-times');\n\nfunction foo(done) {\n    done(new Error());\n}\n\nretry(foo, function (err, result) {\n    if (err) {\n        console.error(err);\n    } else {\n        console.log(result);\n    }\n});\n\n```\n\nYou can override the default number of retries (3)\n\n```javascript\n// Try up to 10 times\nretry(foo, function (err, result) {\n    if (err) {\n        console.error(err);\n    } else {\n        console.log(result);\n    }\n}, 10);\n\n```\n## Events\nIf the callback parameter is omitted, you can listen for events instead.\n\n```javascript\nretry(foo).on('error', function (err) {\n    console.error(err);\n}).on('done', function (result) {\n    console.log(result);\n});\n\n```\n","maintainers":[{"name":"davvo","email":"david.ershag@gmail.com"}],"time":{"modified":"2022-06-27T06:19:36.800Z","created":"2014-02-10T11:57:59.691Z","0.1.0":"2014-02-10T11:58:01.081Z","0.1.1":"2014-02-10T12:00:40.950Z","0.1.2":"2014-02-10T12:33:43.889Z","0.1.3":"2014-02-10T12:59:17.049Z","0.1.4":"2014-02-10T13:00:43.665Z","0.2.0":"2014-02-10T14:59:09.456Z","0.2.1":"2014-02-10T15:34:29.712Z","0.2.2":"2014-02-10T18:33:55.637Z","0.3.0":"2014-02-10T18:53:20.480Z","0.3.1":"2014-02-10T19:21:29.217Z","0.3.2":"2014-02-10T19:43:58.527Z","0.3.3":"2014-02-10T22:08:59.766Z","0.3.4":"2014-02-10T22:34:31.763Z","0.3.5":"2014-02-10T22:36:28.423Z","0.3.6":"2014-02-11T08:12:11.774Z"},"readmeFilename":"README.md","author":{"name":"David Ershag"},"repository":{"type":"git","url":"https://github.com/davvo/three-times"}}