JSPM

Found 113 results for try-catch

try-to-catch

function try-catch wrapper for promises

  • v3.0.1
  • 69.16
  • Published

trywrap

A utility module to handle async function errors gracefully.

  • v1.2.2
  • 49.17
  • Published

go-try

Easy and flattened error handling for sync and async functions

  • v3.0.2
  • 44.47
  • Published

error-lib

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

  • v2.0.2
  • 40.77
  • Published

@power-rent/try-catch

A TypeScript utility for simplified async error handling with Sentry integration

  • v1.0.0
  • 39.34
  • Published

reattempt

Give your functions another chance

    • v0.1.1
    • 39.33
    • Published

    @minimal-effort/safe-try

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

    • v1.2.0
    • 36.81
    • Published

    @shkumbinhsn/try-catch

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

    • v0.0.2
    • 34.70
    • 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
    • 33.21
    • Published

    @duydang2311/attempt

    Go-like error handling for JavaScript and TypeScript

    • v0.0.11
    • 29.59
    • Published

    safe-wrap

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

    • v1.0.1
    • 28.06
    • Published

    catch-first

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

    • v0.3.2
    • 27.11
    • Published

    @moeenn/recover

    Easy type-safe error handling without try-catch

      • v2.0.0
      • 27.11
      • 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
      • 26.59
      • Published

      @await-of/of

      Promise wrapper with some sugar

      • v2.4.10
      • 26.33
      • Published

      tri-fp

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

      • v4.1.0
      • 25.35
      • Published

      @yopem/try-catch

      try catch wrapper for async functions

      • v0.0.2
      • 24.17
      • Published

      @itsezz/try-catch

      A TypeScript utility for elegant error handling with Result types

      • v1.2.0
      • 23.88
      • Published

      tryio

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

      • v1.0.0
      • 23.38
      • Published

      @dliv/try-catch

      A TypeScript utility for better error handling.

      • v1.0.1
      • 22.49
      • Published

      try-to-tape

      wrap tape async functions and show error on reject

      • v1.2.6
      • 21.88
      • Published

      betterr

      A better way to handle errors

      • v6.0.0
      • 21.77
      • Published

      @pidchashyi/try-catch

      A TypeScript utility package for elegant error handling with Result types

      • v3.1.4
      • 21.71
      • Published

      resultx

      Minimalist, strongly-typed result pattern for TypeScript

      • v2.0.2
      • 21.21
      • Published

      @iocmd/hold-up

      setInterval with promises, counter and error handling

      • v2.1.0
      • 21.00
      • Published

      @el3um4s/to-try

      Wrapper for error handling without try-catch

      • v1.0.1
      • 18.82
      • Published

      @julian-i/try-error

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

      • v0.1.11
      • 18.79
      • Published

      error-extractor

      Extract error message from an object using known error properties.

        • v1.0.1
        • 18.38
        • Published

        tryresult

        A typescript library to get rid of try catches.

        • v2.0.6
        • 17.07
        • Published

        await-catch

        Async await wrapper for easy error handling

        • v1.6.7
        • 14.18
        • Published

        @try-error/core

        Lightweight, progressive, type-safe error handling for TypeScript

        • v0.0.1
        • 14.11
        • Published

        @rustresult/result

        Rust-like Result and ResultAsync for Javascript

        • v0.6.0
        • 13.10
        • Published

        @dschz/try-catch

        Simple try-catch utility function for JavaScript

        • v1.1.3
        • 12.27
        • Published

        express-async-catch

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

        • v2.0.4
        • 12.26
        • Published

        trysafely

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

        • v3.0.0
        • 11.71
        • Published

        good-flow

        Improve how you do Javascript errors

        • v0.0.20
        • 11.43
        • Published

        fuck-around-and-find-out

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

          • v1.0.1
          • 11.40
          • Published

          tranxpress

          A smart async wrapper for Express with MongoDB transaction support.

          • v1.1.0
          • 11.29
          • Published

          ts-safe-promise

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

          • v1.0.2
          • 10.88
          • 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
          • 10.38
          • Published

          @ipcom/try-state

          Utility function for error handling in TypeScript

          • v0.1.4
          • 9.69
          • Published

          safe-assignment

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

          • v0.1.4
          • 9.05
          • Published

          sewe

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

          • v1.0.0
          • 8.85
          • Published

          gotrycatch

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

          • v1.0.1
          • 8.44
          • 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
          • 8.34
          • 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
          • 7.89
          • Published

          tryjs

          auto wrap function body with try-catch

          • v0.1.4
          • 7.54
          • 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
          • 7.01
          • Published

          catch-add-report-loader

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

          • v1.0.2
          • 6.74
          • 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
          • 6.74
          • Published

          @safetry/core

          A TypeScript library for safe error handling with Result types

          • v1.0.2
          • 6.69
          • Published

          berrserk

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

          • v0.2.1
          • 6.59
          • Published

          hacktuah

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

          • v0.0.2
          • 6.59
          • Published

          exceptionhandling

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

          • v1.0.0
          • 6.07
          • Published

          defer-reject

          Defer rejection explicitly until a catch handler is attached.

          • v1.0.1
          • 5.51
          • Published

          @stdlib/utils-try-catch

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

          • v0.2.2
          • 4.39
          • Published

          try-catch-wrapper

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

          • v0.1.2
          • 4.25
          • 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.17
          • Published

          lovely-error

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

          • v0.1.1
          • 4.17
          • Published

          untry

          Better error handling in JavaScript

          • v0.0.6
          • 4.16
          • Published

          ts-try-catch

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

          • v0.0.1
          • 4.16
          • Published

          try-catch.macro

          A Babel macro that removes console prints in production

          • v0.0.1
          • 2.69
          • Published

          await-waterfall

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

          • v1.0.2
          • 2.59
          • 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
          • 2.57
          • Published

          happy-try-catch

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

          • v1.0.0
          • 2.55
          • 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
          • 2.55
          • Published

          noex

          Golang style error handling for Functions, Promises and Thenables.

          • v1.3.0
          • 2.49
          • Published

          easy-await-to

          Humanize try-catch in async/await

          • v1.0.0
          • 2.49
          • Published

          nestjs-error-logger

          NestJS decorator to catch and log service errors to file

            • v1.0.0
            • 2.49
            • Published

            @arndesk/attempt

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

            • v1.0.0
            • 2.47
            • Published

            safe-call-lib

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

            • v1.0.1
            • 2.47
            • Published

            simple-await

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

            • v1.0.1
            • 2.44
            • Published

            react-catch-error

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

            • v1.0.0
            • 2.44
            • Published

            renai-js

            no more throw

            • v0.0.6
            • 2.43
            • Published

            mow-try-do

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

            • v1.0.0
            • 0.00
            • 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
              • 0.00
              • Published

              @nickfthedev/gotry

              Go-style error handling with try-catch wrapper

                • v1.0.0
                • 0.00
                • Published

                silent-promise

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

                • v0.0.4
                • 0.00
                • Published

                @xnd-js/result

                Strongly typed Result monad implementation in TypeScript

                • v0.1.3
                • 0.00
                • Published

                @arsat/try-catch

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

                  • v1.0.0
                  • 0.00
                  • Published

                  try-guard

                  Alternative way to handle errors in Javascript

                  • v1.0.5
                  • 0.00
                  • 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
                  • 0.00
                  • Published

                  no-catch-loader

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

                  • v1.0.8
                  • 0.00
                  • Published

                  nv-cli-try-catch

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

                    • v1.0.3
                    • 0.00
                    • Published

                    errors-in

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

                      • v1.2.1
                      • 0.00
                      • Published

                      safe-try-catch

                      Safe and structured error handling for JavaScript.

                      • v0.1.0
                      • 0.00
                      • Published

                      babel-await-add-catch

                      Babel plugin helps automatically add try catch console when encountering await

                        • v0.0.1
                        • 0.00
                        • Published

                        await-call

                        Async await wrapper for easy error handling without try-catch

                        • v0.0.0
                        • 0.00
                        • Published

                        @vikiboss/to

                        A TypeScript utility for elegant error handling

                        • v1.0.0
                        • 0.00
                        • Published

                        fun-try-catch

                        A functional try catch for javascript and typescript

                        • v1.1.0
                        • 0.00
                        • Published