Skip to main content
The Deno 2 Release Candidate is here
Learn more

panic-fn

Functional way of throwing errors in JS/TS

Usage:

import { panic } from 'panic-fn';

panic('Oops');
// or
panic(new Error('Custom error'));