# @f/to-promise

> Convert container to promise.

Latest version **1.1.2** (published 2016-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @f/to-promise
pnpm add @f/to-promise
yarn add @f/to-promise
bun add @f/to-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.1.2 |
| Published | 2016-01-27 |
| First published | 2015-12-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | f |

## Links

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

## Dependencies (10)

- [@f/is-array](https://npm.io/package/@f/is-array.md) ^1.1.1
- [@f/is-object](https://npm.io/package/@f/is-object.md) ^1.1.1
- [@f/is-promise](https://npm.io/package/@f/is-promise.md) ^1.1.1
- [@f/is-function](https://npm.io/package/@f/is-function.md) ^1.1.1
- [@f/is-iterator](https://npm.io/package/@f/is-iterator.md) ^1.0.1
- [@f/is-generator](https://npm.io/package/@f/is-generator.md) ^1.3.2
- [@f/gen-to-promise](https://npm.io/package/@f/gen-to-promise.md) ^1.1.1
- [@f/obj-to-promise](https://npm.io/package/@f/obj-to-promise.md) ^1.2.0
- [@f/array-to-promise](https://npm.io/package/@f/array-to-promise.md) ^1.2.1
- [@f/thunk-to-promise](https://npm.io/package/@f/thunk-to-promise.md) ^1.1.1

## Recent versions

- 1.1.2 (latest) — 2016-01-27
- 1.1.1 — 2015-12-28
- 1.1.0 — 2015-12-28
- 1.0.0 — 2015-12-17
- 0.1.1 — 2015-12-17

## README

# to-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]

Convert container to promise.

## Installation

    $ npm install @f/to-promise

## Usage

```js
var toPromise = require('@f/to-promise')

toPromise({
  a: Promise.resolve(1)
}).then(function (res) {
  res // => {a: 1}
})

toPromise([1]).then(function (res) {
  res // => [1]
})
```

## API

### toPromise(container)

- `container` - A container of some kind to convert (array, object, generator, or thunk)

**Returns:** a promise

## License

MIT

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

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