Package Exports
- fuck-around-and-find-out
- fuck-around-and-find-out/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fuck-around-and-find-out) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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.