{"id":21142637,"url":"https://github.com/klipitkas/await-to","last_synced_at":"2026-07-21T00:34:20.922Z","repository":{"id":42450602,"uuid":"409735361","full_name":"klipitkas/await-to","owner":"klipitkas","description":"Solve the try-catch hell using golang style error handling.","archived":false,"fork":false,"pushed_at":"2023-01-07T11:32:02.000Z","size":297,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T07:11:21.199Z","etag":null,"topics":["hell","js","try","try-catch","trycatch"],"latest_commit_sha":null,"homepage":"","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/klipitkas.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":"2021-09-23T20:29:50.000Z","updated_at":"2023-03-07T06:38:19.000Z","dependencies_parsed_at":"2023-02-07T01:15:52.017Z","dependency_job_id":null,"html_url":"https://github.com/klipitkas/await-to","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/klipitkas%2Fawait-to","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klipitkas%2Fawait-to/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klipitkas%2Fawait-to/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klipitkas%2Fawait-to/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klipitkas","download_url":"https://codeload.github.com/klipitkas/await-to/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243581113,"owners_count":20314176,"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":["hell","js","try","try-catch","trycatch"],"created_at":"2024-11-20T07:57:48.306Z","updated_at":"2025-10-16T19:22:49.258Z","avatar_url":"https://github.com/klipitkas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# await-to\n\nSolve the try-catch hell using golang style error handling.\n\n## Install\n\n    npm i @klipitkas/await-to --save\n\n## Usage\n\n```js\nimport { to } from 'await-to';\n\nconst doSomething = () =\u003e {\n  const [ data, error ] = await to(resolveOrRejectSomePromise());\n\n  if (error) {\n    throw new Error(\"Whoops!\");\n  }\n\n  return data;\n}\n```\n\n## Test\n\n    npm run test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklipitkas%2Fawait-to","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklipitkas%2Fawait-to","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklipitkas%2Fawait-to/lists"}