fuck-around-and-find-out
v1.0.1
Published
Instead of trying and catching, go ahead and fuck around if you wanna find out.
Downloads
16
Maintainers
Readme
fuck-around-and-find-out
This is a joke. But if youre tired of using try-catch
statements, and you feel like fucking around instead, to potentially find out, you can use this.
Installation
npm install fuck-around-and-find-out
Usage
JavaScript
const fuckAround = require('fuck-around-and-find-out');
fuckAround(() => {
// some code that might throw an error
throw new Error('Oh no!');
}, findOut = (error) => {
console.error('Something went wrong:', error.message);
});
TypeScript
import fuckAround = require('fuck-around-and-find-out');
fuckAround(() => {
// some code that might throw an error
throw new Error('Oh no!');
}, findOut = (error: Error) => {
console.error('Something went wrong:', error.message);
});
Motivation
I was fucking around in a production enviroment, and i found out. I was not trying or catching anything. The terminology was simply WRONG. Inspired by the colloquial phrase "fuck around and find out", this module provides developers with a humorous way to handle errors, reminding us to always approach coding with a light-hearted spirit. Go ahead and fuck around. You WILL find out.