{"id":23841750,"url":"https://github.com/playerony/try-catch-wrapper","last_synced_at":"2026-05-15T18:05:41.458Z","repository":{"id":47252993,"uuid":"403113663","full_name":"playerony/try-catch-wrapper","owner":"playerony","description":"Functional try-catch wrapper.","archived":false,"fork":false,"pushed_at":"2021-09-06T17:16:38.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-04T03:48:39.538Z","etag":null,"topics":["javascript","react-try-catch","try-catch","try-catch-wrapper","typescript","typescript-library"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/playerony.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-04T17:11:14.000Z","updated_at":"2021-09-06T17:16:38.000Z","dependencies_parsed_at":"2022-09-02T06:04:21.113Z","dependency_job_id":null,"html_url":"https://github.com/playerony/try-catch-wrapper","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/playerony%2Ftry-catch-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playerony%2Ftry-catch-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playerony%2Ftry-catch-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playerony%2Ftry-catch-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/playerony","download_url":"https://codeload.github.com/playerony/try-catch-wrapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240127088,"owners_count":19751938,"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":["javascript","react-try-catch","try-catch","try-catch-wrapper","typescript","typescript-library"],"created_at":"2025-01-02T18:01:54.086Z","updated_at":"2026-05-15T18:05:40.513Z","avatar_url":"https://github.com/playerony.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# try catch wrapper\n\n![Lint](https://github.com/playerony/try-catch-wrapper/workflows/lint/badge.svg)\n![Test](https://github.com/playerony/try-catch-wrapper/workflows/test/badge.svg)\n![Build](https://github.com/playerony/try-catch-wrapper/workflows/build/badge.svg)\n![Prettier](https://github.com/playerony/try-catch-wrapper/workflows/prettier/badge.svg)\n![Typecheck](https://github.com/playerony/try-catch-wrapper/workflows/typecheck/badge.svg)\n![Commitlint](https://github.com/playerony/try-catch-wrapper/workflows/commitlint/badge.svg)\n\nFunctional try-catch wrapper.\n\n- [API Docs](https://playerony.github.io/try-catch-wrapper)\n\n# Installation ([npm](https://www.npmjs.com/package/@playerony/try-catch-wrapper))\n\n```\nnpm i @playerony/try-catch-wrapper\n```\n\n```\nyarn add @playerony/try-catch-wrapper\n```\n\n# Usage\n\n```js\nimport { tryCatchWrapper, asyncTryCatchWrapper } from '@playerony/try-catch-wrapper';\n\nconst onSuccess = () =\u003e console.log('success');\n\nconst asyncOnSuccess = async () =\u003e Promise.resolve(10);\n\nconst onError = () =\u003e console.log('error');\n\ntryCatchWrapper(onSuccess, onError);\n\nasyncTryCatchWrapper(asyncOnSuccess, onError);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplayerony%2Ftry-catch-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplayerony%2Ftry-catch-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplayerony%2Ftry-catch-wrapper/lists"}