# then-ify

> Make your synchronous function thenable.

Latest version **0.0.3** (published 2017-07-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install then-ify
pnpm add then-ify
yarn add then-ify
bun add then-ify
```

## 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.0.3 |
| Published | 2017-07-03 |
| First published | 2017-05-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | AJ Hsu |
| Maintainers | ajhsu |

## Links

- npm: https://www.npmjs.com/package/then-ify
- Repository: https://github.com/ajhsu/then-ify
- Homepage: https://github.com/ajhsu/then-ify#readme
- Issues: https://github.com/ajhsu/then-ify/issues
- npm.io page: https://npm.io/package/then-ify

## Recent versions

- 0.0.3 (latest) — 2017-07-03
- 0.0.2 — 2017-05-10
- 0.0.1 — 2017-05-10

## README

# then-ify

Make your synchronous function thenable.

[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![License][license-image]][license-url]

## Install
```bash
$ npm install then-ify --save
```

## Example

```javascript
var thenify = require('then-ify');

// Here we have a synchronous function
function syncFunction(input) { return input * input; }

// Now you can call .then with then-ify
thenify(syncFunction)(3)
  .then(function(output){
    // output = 9
  });
```

[npm-image]: https://img.shields.io/npm/v/then-ify.svg
[npm-url]: https://www.npmjs.com/package/then-ify
[travis-image]: https://img.shields.io/travis/ajhsu/then-ify.svg
[travis-url]: https://travis-ci.org/ajhsu/then-ify
[license-image]: https://img.shields.io/github/license/ajhsu/then-ify.svg
[license-url]: LICENSE

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