# async-if

> simplest way to assign delayed tasks and repetitive tasks

Latest version **0.1.0** (published 2012-11-20) · 0 weekly downloads

## Install

```sh
npm install async-if
pnpm add async-if
yarn add async-if
bun add async-if
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2012-11-20 |
| First published | 2012-11-20 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.6.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | InspiredJW |
| Maintainers | inspired_jw |
| Keywords | async, if, conditional, flow |

## Links

- npm: https://www.npmjs.com/package/async-if
- Repository: https://github.com/InspiredJW/async-if
- npm.io page: https://npm.io/package/async-if

## Dependencies (1)

- [async](https://npm.io/package/async.md) 0.1.x

## 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.0 (latest) — 2012-11-20

## README

Async If
=====

####If Statement Extension to Async

Read `async` Documentation from https://github.com/caolan/async

---

### Installation

<pre>
  npm install async-if
</pre>

or

<pre>
  git clone git://github.com/InspiredJW/async-if.git
</pre>

### Example Usage
```javascript
async.waterfall([
    function(callback) {
      async.if(true || false, "Absolutely True", function() {
        // Do Works If condition has passed
      });
    }
  ], function(err) {
    var actions = [
      {
        message: "That is Not True",
        action: function() {
          return console.log("That is Not True");
        }
      }, {
        message: "That is Not True 2",
        action: function() {
          return console.log("That is Not True 2");
        }
      }
    ];
    async.endif(err, actions, function() {
      // Do Works Other Than If Cases
    });
  });
```

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