Run codes and ignore any error
    Preparing search index...

    never-fail

    never-fail

    NPM version NPM downloads

    GitHub NodeJS Codecov

    Visual Studio Code

    Never fail

    import nf, { ignoreFailure, neverFail, warnFailure } from 'never-fail'

    // default export and `neverFail()` is an alias of `ignoreFailure()`
    // `warnFailure()` is the same as `ignoreFailure()` but emit `console.warn()` message during failure

    (async () => {
    await ignoreFailure(() => anyCall())
    await ignoreFailure(() => returnRejectedPromise())
    await ignoreFailure(rejectedPromise)
    // will emit `custom message phrase throws ...` or
    // `custom message phrase rejected with ...`
    await warnFailure(_, 'custom message phrase')
    }())