# any-sync

> Like async but support sync, callbacks, promises and generators

Latest version **1.0.1** (published 2017-06-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install any-sync
pnpm add any-sync
yarn add any-sync
bun add any-sync
```

## 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 | 2017-06-01 |
| First published | 2016-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.2.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alexandr Voronkin |
| Maintainers | avoronkin |

## Links

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

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.5.1
- [wrapped](https://npm.io/package/wrapped.md) ^1.0.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.3.1

## Recent versions

- 1.0.1 (latest) — 2017-06-01
- 1.0.0 — 2016-04-08

## README

# any-sync [WIP]

Like async but support sync, callbacks, promises and generators

```javascript
var anysync = require('any-sync')
var Promise = require('bluebird')
var assert = require('assert')

anysync.auto({
  one: function () {
    return 1
  },
  two: ['one', function (results, cb) {
    cb(null, results.one + 2)
  }],
  three: ['two', function (results) {
    return new Promise(function(resolve) {
      resolve(results.two + 3)
    }
  }]
}, function (err, results) {
  assert.ifError(err)
  assert.deepEqual(results, {one: 1, two: 3, three: 6})
})

```

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