# yesnowtf

> A yesno.wtf API library for Node.js

Latest version **0.4.0** (published 2015-01-01) · MIT license · 0 weekly downloads

## Install

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

## 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.4.0 |
| Published | 2015-01-01 |
| First published | 2014-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Tim Routowicz |
| Maintainers | troutowicz |
| Keywords | decide, decision, yesno, gif |

## Links

- npm: https://www.npmjs.com/package/yesnowtf
- Repository: https://github.com/troutowicz/node-yesnowtf
- Issues: https://github.com/troutowicz/node-yesnowtf/issues
- npm.io page: https://npm.io/package/yesnowtf

## Dependencies (1)

- [q-io](https://npm.io/package/q-io.md) ^1.11.6

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.4.0 (latest) — 2015-01-01
- 0.3.0 — 2014-12-31
- 0.2.2 — 2014-12-30
- 0.1.0 — 2014-12-29

## README

[![Build Status](https://travis-ci.org/troutowicz/node-yesnowtf.svg?branch=master)](https://travis-ci.org/troutowicz/node-yesnowtf) [![npm version](https://badge.fury.io/js/yesnowtf.svg)](http://badge.fury.io/js/yesnowtf)

node-yesnowtf
=============

A yesno.wtf API library for Node.js.

## Installation

    npm install -g yesnowtf

## Module Usage

This module provides the option to use promises instead of callbacks.

```javascript
var yesnowtf = require('yesnowtf');
// undefined, yes, no, maybe
var decision;

// make a decision
yesnowtf.decide(decision)
  .then(function (data) {
    console.log(data);
  })
  .catch(function (err) {
    console.error(err.message);
  });
  
yesnowtf.decide(decision, function (err, data) {
  if (err) {
    console.error(err.message);
    return;
  }

  console.log(data);
});
```

```javascript
{ answer: 'maybe',
  forced: false,
  image: 'http://yesno.wtf/assets/maybe/2-adc5f184452e691c3484d4266776ed3d.gif' }
```

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