# unless

> A JavaScript implementation of the Ruby `unless` conditional flow structure.

Latest version **0.1.1** (published 2014-05-12) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2014-05-12 |
| First published | 2014-05-09 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Akiva Levy |
| Maintainers | akiva |
| Keywords | unless, if, else, condition, conditional, flow |

## Links

- npm: https://www.npmjs.com/package/unless
- Repository: https://github.com/akiva/unless
- Issues: https://github.com/akiva/unless/issues
- npm.io page: https://npm.io/package/unless

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2014-05-12
- 0.1.0 — 2014-05-09

## README

# Unless

A JavaScript implementation of the Ruby `unless` conditional flow
structure.

## Installation

Installation is easy. Issue the following command from within your
project directory:

    npm install unless --save

## Usage

To use this module within your project, simply add it into the desired
files and use it like so:

    var unless = require('unless')

    unless(thingToTestTruthinessOf, fn);

Using an example:

    var unless = require('unless')

    unless(true, function() { console.log('This will not get called.'); });
    unless(false, function() { console.log('This will get called!'); });

## Tests

To run the test suite, use `npm test`.

## License

MIT

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