JSPM

Found 113 results for try-catch

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