Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

fuck-around-and-find-out

dankquan7ISC1.0.1TypeScript support: included

Instead of trying and catching, go ahead and fuck around if you wanna find out.

satire, humor, error-handling, try-catch, alternative, fun, exception, javascript, typescript, node, nodejs, library, utility, fuckaround, findout

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.