{"id":23380749,"url":"https://github.com/softonic/promisefallback","last_synced_at":"2025-04-10T22:44:26.589Z","repository":{"id":57331607,"uuid":"73612920","full_name":"softonic/promisefallback","owner":"softonic","description":"Receives an array of functions, values or promises and returns a promise that resolves with the first of them that resolves.","archived":false,"fork":false,"pushed_at":"2019-12-10T11:55:50.000Z","size":6,"stargazers_count":2,"open_issues_count":4,"forks_count":1,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-04-10T22:44:21.682Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softonic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-13T11:58:42.000Z","updated_at":"2019-12-10T11:55:53.000Z","dependencies_parsed_at":"2022-09-15T00:30:24.899Z","dependency_job_id":null,"html_url":"https://github.com/softonic/promisefallback","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonic%2Fpromisefallback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonic%2Fpromisefallback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonic%2Fpromisefallback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonic%2Fpromisefallback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softonic","download_url":"https://codeload.github.com/softonic/promisefallback/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248312190,"owners_count":21082637,"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-12-21T20:18:16.631Z","updated_at":"2025-04-10T22:44:26.563Z","avatar_url":"https://github.com/softonic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# promisefallback\n\nReceives an array of functions, values or promises and returns a promise that resolves with the first of them that resolves.\n\n## Installation\n\n```bash\nnpm install promisefallback\n```\n\n## Usage\n\n```javascript\nimport promiseFallback from 'promisefallback';\n\nconst promise = promiseFallback([\n  Promise.reject('foo'),\n  () =\u003e Promise.reject('bar'),\n  () =\u003e Promise.resolve('baz')\n]);\n\npromise.then(value =\u003e assert(value === 'baz'));\n```\n\n## Testing\n\nClone the repository and execute:\n\n```bash\nnpm test\n```\n\n## Contribute\n\n1. Fork it: `git clone https://github.com/softonic/promisefallback.git`\n2. Create your feature branch: `git checkout -b feature/my-new-feature`\n3. Commit your changes: `git commit -am 'Added some feature'`\n4. Check the build: `npm run build`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftonic%2Fpromisefallback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftonic%2Fpromisefallback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftonic%2Fpromisefallback/lists"}