fuck-around-and-find-out
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i fuck-around-and-find-out

Weekly Downloads

4

Version

1.0.1

License

ISC

Unpacked Size

2.64 kB

Total Files

6

Last publish

Collaborators

  • dankquan