{"id":17704987,"url":"https://github.com/dwqs/async-await-error-handling","last_synced_at":"2025-10-22T18:24:19.272Z","repository":{"id":57152087,"uuid":"96859957","full_name":"dwqs/async-await-error-handling","owner":"dwqs","description":"Error handling friendly for async/await in ts and js","archived":true,"fork":false,"pushed_at":"2017-07-23T13:14:38.000Z","size":46,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T05:47:45.741Z","etag":null,"topics":["async","await","error-handling"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dwqs.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":"2017-07-11T06:42:26.000Z","updated_at":"2025-01-14T09:50:36.000Z","dependencies_parsed_at":"2022-08-31T23:51:34.467Z","dependency_job_id":null,"html_url":"https://github.com/dwqs/async-await-error-handling","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/dwqs%2Fasync-await-error-handling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwqs%2Fasync-await-error-handling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwqs%2Fasync-await-error-handling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwqs%2Fasync-await-error-handling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwqs","download_url":"https://codeload.github.com/dwqs/async-await-error-handling/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243369886,"owners_count":20280095,"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":["async","await","error-handling"],"created_at":"2024-10-24T22:05:47.551Z","updated_at":"2025-10-22T18:24:18.919Z","avatar_url":"https://github.com/dwqs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build pass](https://api.travis-ci.org/dwqs/async-await-error-handling.svg?branch=master)](https://travis-ci.org/dwqs/async-await-error-handling) ![npm-version](https://img.shields.io/npm/v/async-await-error-handling.svg) ![license](https://img.shields.io/npm/l/async-await-error-handling.svg) ![bower-license](https://img.shields.io/bower/l/async-await-error-handling.svg)\n# async-await-error-handling\n\nError handling friendly for async/await in ts and js.\n\n# Installation\nInstall the pkg with npm:\n\n```\nnpm install async-await-error-handling --save\n```\n\nor yarn\n\n```\nyarn add async-await-error-handling\n```\n\nor bower\n\n```\nbower install async-await-error-handling\n```\n\n# Usage\n\n```\nimport awaitTo from 'async-await-error-handling';\n\nasync getData() {\n    const [err, data] = await awaitTo(fetch('./data/person2.json'));\n    \n    if(err){\n        throw err;\n    }\n\n    return data;\n}\n```\n\n# LICENSE\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwqs%2Fasync-await-error-handling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwqs%2Fasync-await-error-handling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwqs%2Fasync-await-error-handling/lists"}