# is-boolean

> Predicate that returns true for "boolean" values.

Latest version **0.0.2** (published 2018-03-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-boolean
pnpm add is-boolean
yarn add is-boolean
bun add is-boolean
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-03-15 |
| First published | 2015-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Miguel Mota |
| Maintainers | miguelmota |
| Keywords | predicate, boolean |

## Links

- npm: https://www.npmjs.com/package/is-boolean
- Repository: https://github.com/miguelmota/is-boolean
- Issues: https://github.com/miguelmota/is-boolean/issues
- npm.io page: https://npm.io/package/is-boolean

## Dependencies (1)

- [tape](https://npm.io/package/tape.md) ^3.0.3

## Recent versions

- 0.0.2 (latest) — 2018-03-15
- 0.0.1 — 2015-03-12

## README

# is-boolean

Predicate that returns true for *boolean* values.

# Install

```bash
npm install is-boolean
```

# Usage

```javascript
var isBoolean = require('is-boolean');

console.log(isBoolean(false)); // true
console.log(isBoolean(true)); // true
console.log(isBoolean(new Boolean(1))); // true
console.log(isBoolean(!!'foo')); // true
console.log(isBoolean(!'foo')); // true
console.log(isBoolean('')); // false
console.log(isBoolean([])); // false
console.log(isBoolean(0)); // false
console.log(isBoolean(null)); // false
console.log(isBoolean(undefined)); // false
console.log(isBoolean(1)); // false
console.log(isBoolean({})); // false
console.log(isBoolean(function() {})); // false
console.log(isBoolean(/foo/gi)); // false
console.log(isBoolean(NaN)); // false
```

# License

MIT

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