https://github.com/bramsuurdje/try-catch-wrapper-ts
a simple wrapper for the try catch method in typescript
https://github.com/bramsuurdje/try-catch-wrapper-ts
Last synced: 5 months ago
JSON representation
a simple wrapper for the try catch method in typescript
- Host: GitHub
- URL: https://github.com/bramsuurdje/try-catch-wrapper-ts
- Owner: BramSuurdje
- Created: 2025-02-26T16:39:55.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-02-26T16:54:46.000Z (10 months ago)
- Last Synced: 2025-06-26T14:51:21.728Z (6 months ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/try-catch-wrapper-ts
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
a simple wrapper for the try catch method in typescript
## Installation
```bash
npm install try-catch-wrapper-ts
```
## Usage
```ts
import { tryCatch } from "try-catch-wrapper-ts";
const { data, error } = await tryCatch(someFunction());
```