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 ↗v2.2.0. Check the official docs for the latest API surface.Installation
npm install loud-rejectionpnpm add loud-rejectionMethods
No methods match this filter.
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
- Official source: https://github.com/sindresorhus/loud-rejection
- Evidence: https://cdn.jsdelivr.net/gh/sindresorhus/loud-rejection@latest/readme.md
- Checked on 2026-11-04 by
scripts/phase11/build-api-profiles.mjs
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.
loudRejection→ signature from https://cdn.jsdelivr.net/gh/sindresorhus/loud-rejection@latest/readme.md; official text: “### loudRejection([log]) #### log Type:FunctionDefault:console.errorCustom logging function to print the rejected promise. Receives the error stack.”
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.
Report a problem with this API docOpens a pre-filled issue on GitHub.