# @nkcmr/bool

> cast damn near anything to a logical boolean

Latest version **1.1.0** (published 2015-06-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nkcmr/bool
pnpm add @nkcmr/bool
yarn add @nkcmr/bool
bun add @nkcmr/bool
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2015-06-14 |
| First published | 2015-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nick Comer |
| Maintainers | nkcmr |

## Links

- npm: https://www.npmjs.com/package/@nkcmr/bool
- Repository: https://github.com/nkcmr/bool
- Homepage: https://github.com/nkcmr/bool#readme
- Issues: https://github.com/nkcmr/bool/issues
- npm.io page: https://npm.io/package/@nkcmr/bool

## Recent versions

- 1.1.0 (latest) — 2015-06-14
- 1.0.2 — 2015-06-14
- 1.0.1 — 2015-06-14
- 1.0.0 — 2015-06-14

## README

### bool
cast truthy stuff to a boolean value
```javascript
var bool = require('@nkcmr/bool')
bool('true') // => true
bool('yes') // => true
bool('no') // => false
bool('false') // => false
bool(0) // => false
bool(1) // => true
bool(-1) // => false
bool({}) // => false
bool({ foo: 'bar' }) // => true
```
theres more, check the code. it is pretty brief, but handy.

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