Skip to main content
Deno 2 is finally 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'));