JSPM

Found 113 results for try-catch

express-async-catch

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

  • v2.0.4
  • 12.19
  • Published

@ipcom/try-state

Utility function for error handling in TypeScript

  • v0.1.4
  • 12.10
  • Published

trysafely

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

  • v3.0.0
  • 11.69
  • 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.58
    • Published

    good-flow

    Improve how you do Javascript errors

    • v0.0.20
    • 11.38
    • Published

    tranxpress

    A smart async wrapper for Express with MongoDB transaction support.

    • v1.1.0
    • 11.23
    • Published

    ts-safe-promise

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

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

    safe-assignment

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

    • v0.1.4
    • 9.03
    • Published

    sewe

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

    • v1.0.0
    • 8.81
    • Published

    gotrycatch

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

    • v1.0.1
    • 8.58
    • 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.33
    • Published

    tryjs

    auto wrap function body with try-catch

    • v0.1.4
    • 7.52
    • 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
    • 6.98
    • Published

    @safetry/core

    A TypeScript library for safe error handling with Result types

    • v1.0.2
    • 6.80
    • Published

    catch-add-report-loader

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

    • v1.0.2
    • 6.72
    • 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.72
    • 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.09
    • 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
    • 5.74
    • Published

    defer-reject

    Defer rejection explicitly until a catch handler is attached.

    • v1.0.1
    • 5.50
    • Published

    @stdlib/utils-try-catch

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

    • v0.2.2
    • 4.38
    • Published

    try-catch-wrapper

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

    • v0.1.2
    • 4.24
    • 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.16
    • Published

    lovely-error

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

    • v0.1.1
    • 4.16
    • Published

    untry

    Better error handling in JavaScript

    • v0.0.6
    • 4.15
    • Published

    ts-try-catch

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

    • v0.0.1
    • 4.15
    • 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.58
    • 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.56
    • Published

    happy-try-catch

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

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

    @arndesk/attempt

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

    • v1.0.0
    • 2.51
    • Published

    safe-call-lib

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

    • v1.0.1
    • 2.51
    • Published

    noex

    Golang style error handling for Functions, Promises and Thenables.

    • v1.3.0
    • 2.48
    • Published

    easy-await-to

    Humanize try-catch in async/await

    • v1.0.0
    • 2.48
    • Published

    nestjs-error-logger

    NestJS decorator to catch and log service errors to file

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