# @f/defer-promise

> Like Promise.defer().

Latest version **1.0.0** (published 2016-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @f/defer-promise
pnpm add @f/defer-promise
yarn add @f/defer-promise
bun add @f/defer-promise
```

## 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.0 |
| Published | 2016-02-10 |
| First published | 2016-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | f |

## Links

- npm: https://www.npmjs.com/package/@f/defer-promise
- Repository: https://github.com/micro-js/defer-promise
- Homepage: https://github.com/micro-js/defer-promise#readme
- Issues: https://github.com/micro-js/defer-promise/issues
- npm.io page: https://npm.io/package/@f/defer-promise

## Recent versions

- 1.0.0 (latest) — 2016-02-10
- 0.1.1 — 2016-02-10

## README

# defer-promise

[![Build status][travis-image]][travis-url]
[![Git tag][git-image]][git-url]
[![NPM version][npm-image]][npm-url]
[![Code style][standard-image]][standard-url]

Like Promise.defer(). Works the same ways as Promise.defer(), which isn't in the Promise spec and isn't always supported.

## Installation

    $ npm install @f/defer-promise

## Usage

```js
var deferPromise = require('@f/defer-promise')

var deferred = deferPromise()

deferred.promise.then(function (val) {
  console.log('woot ' + val)
})
deferred.resolve('yo')
// => "woot yo"

```

## API

### deferPromise()

**Returns:** `deferred`

### .promise

Promise object.

### .resolve

Resolve promise.

### .reject

Reject promise.

## License

MIT

[travis-image]: https://img.shields.io/travis/micro-js/defer-promise.svg?style=flat-square
[travis-url]: https://travis-ci.org/micro-js/defer-promise
[git-image]: https://img.shields.io/github/tag/micro-js/defer-promise.svg?style=flat-square
[git-url]: https://github.com/micro-js/defer-promise
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[standard-url]: https://github.com/feross/standard
[npm-image]: https://img.shields.io/npm/v/@f/defer-promise.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@f/defer-promise

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