# fiftyfifty

> Is it true or is it false?

Latest version **1.3.0** (published 2022-05-09) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install fiftyfifty
pnpm add fiftyfifty
yarn add fiftyfifty
bun add fiftyfifty
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2022-05-09 |
| First published | 2022-04-25 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | berra.dev |
| Maintainers | berra.dev |
| Keywords | javascript, random, boolean |

## Links

- npm: https://www.npmjs.com/package/fiftyfifty
- Repository: https://github.com/berra/fiftyfifty
- Homepage: https://github.com/berra/fiftyfifty#readme
- Issues: https://github.com/berra/fiftyfifty/issues
- npm.io page: https://npm.io/package/fiftyfifty

## Recent versions

- 1.3.0 (latest) — 2022-05-09
- 1.2.0 — 2022-04-28
- 1.1.0 — 2022-04-26
- 1.0.0 — 2022-04-25

## README

# fiftyfifty

Is it true or is it false?

## Installation

```
npm install fiftyfifty@latest
```

## How to use

This section describes how to use this package.

### Default usage

```javascript
import fiftyfifty from "fiftyfifty";

const x = fiftyfifty(); // x is `true` or `false`
```

### Flip a coin

```javascript
import { coinflip } from "fiftyfifty";

const coin = coinflip(); // coin is "heads" or "tails"
```

### Advanced usage

Send trueValue and/or falseValue to fiftyfifty to set custom returns.

```javascript
import fiftyfifty from "fiftyfifty";

const answer = fiftyfifty("right", "wrong");

console.log(answer); // "right" or "wrong"
```

---
_Source: https://npm.io/package/fiftyfifty · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
