# yepnope

> Yepnope transforms yes/no answers into booleans

Latest version **1.1.0** (published 2017-04-03) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2017-04-03 |
| First published | 2017-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jonathan Tavares |
| Maintainers | entomb |

## Links

- npm: https://www.npmjs.com/package/yepnope
- npm.io page: https://npm.io/package/yepnope

## Dependencies (1)

- [jasmine](https://npm.io/package/jasmine.md) ^2.5.3

## Recent versions

- 1.1.0 (latest) — 2017-04-03
- 1.0.0 — 2017-03-25

## README

Yepnope
=======
[![Build Status](https://travis-ci.org/entomb/yepnope.svg?branch=master)](https://travis-ci.org/entomb/yepnope)

Yepnope transforms yes/no answers into bools, very usefull for chatbots and command line tools.

## Usage
require the lib using `const yepnope = require('yepnoe')`

```javascript
  var ok = new yepnope('yes')
  //ok.true === true


  var notok = new yepnope('nope')
  //notok.false === true
```

## Example
```javascript
  function parseAnswer(text){
    var response = new yepnope(text);

    if(response.true){
      return 'thanks! i\'ll do that!';
    }

    if(response.false){
      return 'ups! i\'ll do something else then!';
    }

    if(!response.false && !response.true){
      return 'I don\'t understand!'
    }

  }
```

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