# 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

```bash
npm install fuck-around-and-find-out
```

## Usage

### JavaScript

```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

```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.

