API Reference

loud-rejection

This tool keeps track of unhandled rejections globally. If any remain unhandled at the end of your process, it logs them to STDERR and exits with code 1.

Official Documentation ↗
CompatibilityThis documentation covers version v2.2.0. Check the official docs for the latest API surface.

Installation

npmnpm install loud-rejection
pnpmpnpm add loud-rejection

Methods

Overview

This tool keeps track of unhandled rejections globally. If any remain unhandled at the end of your process, it logs them to STDERR and exits with code 1.

API reference status

This page lists only entry points that appear verbatim in the official README examples: error, promiseFunction, loudRejection. Parameter and return types are not given by the official README, so signatures are marked unverified.

Verification notes

API reference evidence

Fetched from official sources on 2026-11-08T18:38:00+08:00 via WebFetch https://cdn.jsdelivr.net/gh/sindresorhus/loud-rejection@latest/readme.md.

FAQ

What does loud-rejection do?
This tool keeps track of unhandled rejections globally.
How do I install loud-rejection?
Run `npm install loud-rejection`.
Where can I verify the API details?
Official repository/documentation: https://github.com/sindresorhus/loud-rejection. Checked on 2026-11-04; signatures and return values not stated in the official README are marked unverified.