JSPM

Found 120 results for try-catch

try-to-catch

function try-catch wrapper for promises

  • v3.0.1
  • 67.33
  • Published

trywrap

A utility module to handle async function errors gracefully.

  • v1.2.2
  • 48.08
  • Published

go-try

Easy and flattened error handling for sync and async functions

  • v3.0.2
  • 44.89
  • Published

@power-rent/try-catch

A TypeScript utility for simplified async error handling with Sentry integration

  • v1.0.0
  • 43.51
  • Published

fortify-schema

A modern TypeScript validation library designed around familiar interface syntax and powerful conditional validation. Experience schema validation that feels natural to TypeScript developers while unlocking advanced runtime validation capabilities.

  • v2.1.2
  • 42.50
  • Published

catchbuddy

Simplify error handling in JavaScript with a lightweight utility that organizes results and errors for both synchronous and asynchronous operations.

  • v0.2.0
  • 37.43
  • Published

error-lib

Standard Error Library for JavaScript/TypeScript projects (NodeJS & Browsers)

  • v2.0.2
  • 36.74
  • Published

@el3um4s/to-try

Wrapper for error handling without try-catch

  • v1.0.1
  • 34.03
  • Published

@shkumbinhsn/try-catch

A utility package for handling try-catch blocks in TypeScript.

  • v0.0.2
  • 32.04
  • Published

reattempt

Give your functions another chance

    • v0.1.1
    • 32.01
    • Published

    @dschz/try-catch

    Simple try-catch utility function for JavaScript

    • v1.1.3
    • 31.25
    • Published

    @await-of/of

    Promise wrapper with some sugar

    • v2.4.10
    • 29.82
    • Published

    neat-fetch

    Neat Fetch is a modern, lightweight, and type-safe wrapper around the native `fetch` API that makes HTTP requests predictable, readable, and enjoyable.

    • v1.0.4
    • 29.39
    • Published

    resultx

    Minimalist, strongly-typed result pattern for TypeScript

    • v2.0.2
    • 27.92
    • Published

    neat-catch

    A comprehensive utility library for elegant error handling in TypeScript and JavaScript. Handle both sync and async operations with clean tuple-based results.

    • v1.0.5
    • 27.65
    • Published

    tri-fp

    Eliminate try-catch and make it possible to handle all 3 outcomes differently: result, native exception, & application error.

    • v4.1.0
    • 27.36
    • Published

    catch-wrap

    Type-safe try-catch utility for TypeScript

    • v1.0.1
    • 26.46
    • Published

    @moeenn/recover

    Easy type-safe error handling without try-catch

      • v2.0.0
      • 24.71
      • Published

      await-catch

      Async await wrapper for easy error handling

      • v1.6.7
      • 24.30
      • Published

      @dliv/try-catch

      A TypeScript utility for better error handling.

      • v1.0.1
      • 24.23
      • Published

      error-extractor

      Extract error message from an object using known error properties.

        • v1.0.1
        • 24.09
        • Published

        @pidchashyi/try-catch

        A TypeScript utility package for elegant error handling with Result types

        • v3.1.4
        • 24.03
        • Published

        try-to-tape

        wrap tape async functions and show error on reject

        • v1.2.6
        • 23.91
        • Published

        @rustresult/result

        Rust-like Result and ResultAsync for Javascript

        • v0.6.0
        • 23.88
        • Published

        nestjs-error-logger

        NestJS decorator to catch and log service errors to file

          • v1.0.0
          • 23.35
          • Published

          @iocmd/hold-up

          setInterval with promises, counter and error handling

          • v2.1.0
          • 23.29
          • Published

          @andreasnicolaou/safe

          A simple utility for handling synchronous and asynchronous errors without relying on try-catch blocks.

          • v2.0.0
          • 23.14
          • Published

          @minimal-effort/safe-try

          Safe-try is a Typescript type-safe error handling library for both sync and async operations

          • v1.2.0
          • 22.60
          • Published

          @julian-i/try-error

          Elegant tuple-based error handling utilities for TypeScript, inspired by Rust's Result<T, E> pattern.

          • v0.1.11
          • 22.16
          • Published

          @stdlib/utils-async-try-then

          If a function does not return an error, invoke a callback with the function result; otherwise, invoke a second function.

          • v0.2.2
          • 21.53
          • Published

          @stdlib/utils-async-try-catch

          If a function does not return an error, invoke a callback with the function result; otherwise, invoke a callback with a value `y`.

          • v0.2.2
          • 20.80
          • Published

          @itsezz/try-catch

          A TypeScript utility for elegant error handling with Result types

          • v1.2.0
          • 18.82
          • Published

          good-flow

          Improve how you do Javascript errors

          • v0.0.20
          • 18.75
          • Published

          catch-first

          Catch-first can simplify the code and handle exceptions better and more safely.

          • v0.3.2
          • 18.01
          • Published

          try-catch-wrapper

          This package are simple wrapper, based on functional programming paradigm with higher order function

          • v0.1.2
          • 15.83
          • Published

          betterr

          A better way to handle errors

          • v6.0.0
          • 15.54
          • Published

          sewe

          Simple module that runs eval inside try-catch blocks using safe-eval module

          • v1.0.0
          • 15.16
          • Published

          tranxpress

          A smart async wrapper for Express with MongoDB transaction support.

          • v1.1.0
          • 14.53
          • Published

          @stdlib/utils-try-then

          If a function does not throw, return the function return value; otherwise, return the return value of a second function.

          • v0.2.2
          • 14.43
          • Published

          ts-safe-promise

          A lightweight utility to handle promises safely, returning an error or result in a predictable format.

          • v1.0.2
          • 14.30
          • Published

          @stdlib/utils-try-catch

          If a function does not throw, return the function return value; otherwise, return `y`.

          • v0.2.2
          • 13.98
          • Published

          @ipcom/try-state

          Utility function for error handling in TypeScript

          • v0.1.4
          • 13.33
          • Published

          @future-widget-lab/safe-ops

          A set of helper functions for performing operations safely, preventing runtime errors from disrupting your application.

          • v0.1.1
          • 13.12
          • Published

          no-catch-loader

          一个webpack loader,为异步操作自动添加try-catch语句

          • v1.0.8
          • 12.98
          • Published

          @queso/attempt

          Wraps func in a try...catch.

          • v1.2.0
          • 12.61
          • Published

          express-async-catch

          Simple wrapper for Express route handlers, which propagates errors to the centralized error handler.

          • v2.0.4
          • 12.28
          • Published

          silent-promise

          Make a promise fail silently. For use with async/await for easy error handling without try-catch

          • v0.0.4
          • 12.25
          • Published

          tryresult

          A typescript library to get rid of try catches.

          • v2.0.6
          • 11.94
          • Published

          exceptionhandling

          统一为所有的异步函数添加try-catch异常捕获,在class中使用体验更佳

          • v1.0.0
          • 11.69
          • Published

          catch-add-report-loader

          Automatically add exception report(like sentry) in try-catch block

          • v1.0.2
          • 11.38
          • Published

          tryjs

          auto wrap function body with try-catch

          • v0.1.4
          • 11.35
          • Published

          @yopem/try-catch

          try catch wrapper for async functions

          • v0.0.2
          • 10.87
          • Published

          happy-try-catch

          try-catch wrapper with quick easy syntax; fully customizable & works with async and promises

          • v1.0.0
          • 10.76
          • Published

          renai-js

          no more throw

          • v0.0.6
          • 10.52
          • Published

          easy-await-to

          Humanize try-catch in async/await

          • v1.0.0
          • 10.37
          • Published

          simple-await

          Executing async function with simple error handling. Returns object with data and error.

          • v1.0.1
          • 10.34
          • Published

          untry

          Better error handling in JavaScript

          • v0.0.6
          • 10.01
          • Published

          gotrycatch

          Golang-style error handling utility for async and sync operations in TypeScript/JavaScript

          • v1.0.1
          • 9.87
          • Published

          @arndesk/attempt

          A simple utility to handle promises with optional logging and error throwing.

          • v1.0.0
          • 9.87
          • Published

          @safetry/core

          A TypeScript library for safe error handling with Result types

          • v1.0.2
          • 9.23
          • Published

          noex

          Golang style error handling for Functions, Promises and Thenables.

          • v1.3.0
          • 9.15
          • Published

          @arsat/try-catch

          A flexible and modern implementation of try, catch, and finally blocks using asynchronous functions and arrow functions.

            • v1.0.0
            • 9.15
            • Published

            trysafely

            A robust async helper to wrap promises and functions, returning [result, error] for graceful error handling.

            • v3.0.0
            • 9.12
            • Published

            safe-wrap

            Safely wrap JavaScript functions and values with fallbacks, redirection, and error handling — no TypeScript required.

            • v1.0.1
            • 9.04
            • Published

            dev-handler

            dev handler is a package which can handle errors and to the tests at the same time and you can make consoles on and off anytime

            • v1.0.2
            • 8.82
            • Published

            tryio

            A robust async helper to wrap promises and functions, returning [result, error] for graceful error handling.

            • v1.0.0
            • 8.61
            • Published

            @nickfthedev/gotry

            Go-style error handling with try-catch wrapper

              • v1.0.0
              • 8.43
              • Published

              try-guard

              Alternative way to handle errors in Javascript

              • v1.0.5
              • 7.97
              • Published

              await-waterfall

              A simple try-catch block that allows the use of throw whilst being asynchronous. This utilizes async/waterfall.

              • v1.0.2
              • 7.78
              • Published

              lovely-error

              Minimal, powerful, and highly customizable error parser and manager for JavaScript! 🚀

              • v0.1.1
              • 7.60
              • Published

              errors-in

              Removing try-catch boilerplate in a natural style with error handlers.

                • v1.2.1
                • 7.35
                • Published

                berrserk

                Lightweight TypeScript library for type-safe errors-as-values

                • v0.2.1
                • 7.35
                • Published

                @mumen/try-catch-alt

                An alternative library for try-catch blocks, helps reduce the code and make it cleaner and more readable using anonymous functions.

                • v1.0.1
                • 6.93
                • Published

                fuck-around-and-find-out

                Instead of trying and catching, go ahead and fuck around if you wanna find out.

                  • v1.0.1
                  • 6.74
                  • Published

                  defer-reject

                  Defer rejection explicitly until a catch handler is attached.

                  • v1.0.1
                  • 6.66
                  • Published

                  babel-await-add-catch

                  Babel plugin helps automatically add try catch console when encountering await

                    • v0.0.1
                    • 6.45
                    • Published

                    @try-error/core

                    Lightweight, progressive, type-safe error handling for TypeScript

                    • v0.0.1
                    • 6.45
                    • Published

                    try-catch.macro

                    A Babel macro that removes console prints in production

                    • v0.0.1
                    • 5.98
                    • Published

                    hacktuah

                    Gen Z-inspired try/catch block and logging utility for JavaScript and TypeScript developers.

                    • v0.0.2
                    • 5.38
                    • Published

                    fun-try-catch

                    A functional try catch for javascript and typescript

                    • v1.1.0
                    • 4.52
                    • Published

                    try_catch_req

                    A module to make clear and succinct a redundant async/await try-catchs in using promises in node routes.

                    • v1.0.0
                    • 4.41
                    • Published

                    await-call

                    Async await wrapper for easy error handling without try-catch

                    • v0.0.0
                    • 4.30
                    • Published

                    @vikiboss/to

                    A TypeScript utility for elegant error handling

                    • v1.0.0
                    • 4.30
                    • Published

                    safe-call-lib

                    A simple utility to handle async errors without try-catch blocks in Node.js.

                    • v1.0.1
                    • 4.25
                    • Published

                    mow-try-do

                    一个将try-catch包装成函数的库

                    • v1.0.0
                    • 4.25
                    • Published

                    @xnd-js/result

                    Strongly typed Result monad implementation in TypeScript

                    • v0.1.3
                    • 4.22
                    • Published

                    try-handler

                    Try handler is a powerful utility that wraps try-catch blocks in a function, allowing you to handle errors in a more elegant way, without the need to write try-catch blocks in your code.

                    • v0.0.5
                    • 4.20
                    • Published

                    safe-assignment

                    Error Safe Assignment alternative for JS/TS, a simple way to remove try/catch hell

                    • v0.1.4
                    • 4.20
                    • Published

                    safe-async-ts

                    A minimal TypeScript utility for safe asynchronous operations using tuple destructuring. Avoid try/catch blocks and handle async errors cleanly with [error, result] syntax. Lightweight, tree-shakable, and designed for developer productivity in modern Type

                    • v1.0.0
                    • 4.20
                    • Published

                    react-catch-error

                    A robust error handling utility for JavaScript and TypeScript applications with retry, timeout, and logging capabilities

                    • v1.0.0
                    • 4.20
                    • Published

                    safe-try-catch

                    Safe and structured error handling for JavaScript.

                    • v0.1.0
                    • 4.07
                    • Published

                    try-catch-logger

                    A utility package for your repetitive try catch with a proper standard logging format with both async and normal function compatible.

                      • v0.0.1
                      • 2.47
                      • Published

                      nv-cli-try-catch

                      nv-cli-try-catch =============== - nv-cli-try-catch - cli tool, generate many nested-try-catch blocks

                        • v1.0.3
                        • 2.38
                        • Published

                        ts-try-catch

                        A utility package for handling try-catch blocks in TypeScript.

                        • v0.0.1
                        • 0.00
                        • Published

                        @sangreprimitiva/tranqui

                        Run sync/async functions and get a typed Result: value() or error() for explicit error handling.

                        • v1.0.0
                        • 0.00
                        • Published