# more-boolean-methods

> More boolean methods!

Latest version **1.0.2** (published 2020-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install more-boolean-methods
pnpm add more-boolean-methods
yarn add more-boolean-methods
bun add more-boolean-methods
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-05-22 |
| First published | 2020-05-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | SpeckyYT |
| Maintainers | specky |
| Keywords | boolean, booleans, boolean-methods, boolean-prototype, polyfill |

## Links

- npm: https://www.npmjs.com/package/more-boolean-methods
- Repository: https://github.com/SpeckyYT/more-boolean-methods
- Homepage: https://github.com/SpeckyYT/more-boolean-methods#readme
- Issues: https://github.com/SpeckyYT/more-boolean-methods/issues
- npm.io page: https://npm.io/package/more-boolean-methods

## Recent versions

- 1.0.2 (latest) — 2020-05-22
- 1.0.1 — 2020-05-11
- 1.0.0 — 2020-05-09

## README

# More Boolean Methods!

## Installation
```js
require('more-boolean-methods')();
// Done!
```

## Methods

| Method | Description |
| ------ | ----------- |
.random() | Will give you a random boolean
.not() | Will negate the boolean
.stringify() | Will convert the boolean to a string
.numberify() | Will convert the boolean to a number
.arrayify() | Will convert the boolean to an array
.true() | Will return true
.false() | Will return false
.and(boolean) | Will return the 'AND' value of the two booleans
.or(boolean) | Will return the 'OR' value of the two booleans
.equals(boolean) | Will return true if both booleans are equal
.xor(boolean) | Will return the 'XOR' value of the two booleans

## Examples

```js
true.and(false) // expected output: false
false.or(true) // expected output: true
true.not() // expected output: false
true.false() // expected output: false
true.stringify() // expected output: 'true'
```

## Infos

This module was kinda made as a joke, but you're free to use it anyways!

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