{"id":18657818,"url":"https://github.com/lightsofapollo/promise-retries","last_synced_at":"2025-11-05T22:30:21.907Z","repository":{"id":57331438,"uuid":"33145236","full_name":"lightsofapollo/promise-retries","owner":"lightsofapollo","description":"Retry a function which returns a promise.","archived":false,"fork":false,"pushed_at":"2015-03-31T05:18:37.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-28T01:38:04.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lightsofapollo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-30T20:09:02.000Z","updated_at":"2015-04-14T21:07:53.000Z","dependencies_parsed_at":"2022-08-29T05:11:41.298Z","dependency_job_id":null,"html_url":"https://github.com/lightsofapollo/promise-retries","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsofapollo%2Fpromise-retries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsofapollo%2Fpromise-retries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsofapollo%2Fpromise-retries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsofapollo%2Fpromise-retries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightsofapollo","download_url":"https://codeload.github.com/lightsofapollo/promise-retries/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239475960,"owners_count":19645041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T07:29:56.175Z","updated_at":"2025-11-05T22:30:21.869Z","avatar_url":"https://github.com/lightsofapollo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# promise-retries\n\nRetry a function which returns a promise.\n\n\n## Usage:\n\n### Options\n\n  - interval: Base back off (defaults to 500ms).\n  - retries : Number of times to retry.\n\n### Usage in vanilla node:\n\n```js\nvar retry = require('promise-retries');\n\nretry(options, function(retryInterval) {\n  return new Promise(function() {\n    //\n  });\n}).then(function() {\n\n}).catch(function() {\n\n});\n\n```\n\n### With babel + await/async\n\n```js\n\nawait retry(async () =\u003e {\n  let res = await promiseFunc();\n});\n\n```\n\n## LICENSE\n\nCopyright 2015, Mozilla Foundation\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightsofapollo%2Fpromise-retries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightsofapollo%2Fpromise-retries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightsofapollo%2Fpromise-retries/lists"}