{"id":16884688,"url":"https://github.com/timwis/eres","last_synced_at":"2025-09-21T00:31:47.502Z","repository":{"id":140605469,"uuid":"100137004","full_name":"timwis/eres","owner":"timwis","description":"Use async/await with [err, result] instead of try/catch.","archived":false,"fork":false,"pushed_at":"2017-08-13T13:45:31.000Z","size":3,"stargazers_count":62,"open_issues_count":2,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T05:23:16.434Z","etag":null,"topics":[],"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/timwis.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,"governance":null}},"created_at":"2017-08-12T20:46:52.000Z","updated_at":"2024-09-14T20:33:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"80b9f89e-c376-472a-8c6a-4b60e2592af2","html_url":"https://github.com/timwis/eres","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/timwis/eres","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwis%2Feres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwis%2Feres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwis%2Feres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwis%2Feres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timwis","download_url":"https://codeload.github.com/timwis/eres/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwis%2Feres/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276179310,"owners_count":25598565,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-13T16:29:50.585Z","updated_at":"2025-09-21T00:31:47.246Z","avatar_url":"https://github.com/timwis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eres\nUse async/await with `[err, result]` instead of try/catch.\n\n## usage\nInstead of:\n```javascript\nlet result\ntry {\n  result = await fetch('https://...')\n} catch (err) {\n  console.error('no workie')\n}\nrender(result)\n```\n\nYou can now:\n```javascript\nconst [err, result] = await eres(fetch('https://...'))\nif (err) return console.error('no workie')\nrender(result)\n```\n\nDon't spend all the vertical space you get back in one place.\n\n## installation\n```bash\nnpm install eres\n```\n\n## related\n- [0x00A/asde](https://www.npmjs.com/package/asde)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimwis%2Feres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimwis%2Feres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimwis%2Feres/lists"}