# @f/string-to-boolean

> Convert string to boolean.

Latest version **1.0.1** (published 2016-04-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @f/string-to-boolean
pnpm add @f/string-to-boolean
yarn add @f/string-to-boolean
bun add @f/string-to-boolean
```

## 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.0.1 |
| Published | 2016-04-08 |
| First published | 2016-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | f |

## Links

- npm: https://www.npmjs.com/package/@f/string-to-boolean
- Repository: https://github.com/micro-js/string-to-boolean
- Homepage: https://github.com/micro-js/string-to-boolean#readme
- Issues: https://github.com/micro-js/string-to-boolean/issues
- npm.io page: https://npm.io/package/@f/string-to-boolean

## Dependencies (1)

- [@f/is-boolean](https://npm.io/package/@f/is-boolean.md) ^1.0.0

## Recent versions

- 1.0.1 (latest) — 2016-04-08
- 1.0.0 — 2016-04-08

## README

# string-to-boolean

[![Build status][travis-image]][travis-url]
[![Git tag][git-image]][git-url]
[![NPM version][npm-image]][npm-url]
[![Code style][standard-image]][standard-url]

Convert string to boolean.

## Installation

    $ npm install @f/string-to-boolean

## Usage

```js
var stringToBoolean = require('@f/string-to-boolean')

stringToBoolean('true') // => true
stringToBoolean('a') // throws TypeError
```

## API

### stringToBoolean(val)

- `val` - val to convert to boolean

**Returns:** boolean or throw TypeError

## License

MIT

[travis-image]: https://img.shields.io/travis/micro-js/string-to-boolean.svg?style=flat-square
[travis-url]: https://travis-ci.org/micro-js/string-to-boolean
[git-image]: https://img.shields.io/github/tag/micro-js/string-to-boolean.svg?style=flat-square
[git-url]: https://github.com/micro-js/string-to-boolean
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[standard-url]: https://github.com/feross/standard
[npm-image]: https://img.shields.io/npm/v/@f/string-to-boolean.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@f/string-to-boolean

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