# is-promise

> Test whether an object looks like a promises-a+ promise

Latest version **4.0.0** (published 2020-04-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-promise
pnpm add is-promise
yarn add is-promise
bun add is-promise
```

## Health

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

Positive: has types package; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2020-04-27 |
| First published | 2012-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/is-promise) |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 282 |
| Author | ForbesLindesay |
| Maintainers | forbeslindesay, then-bot |

## Links

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

## Recent versions

- 4.0.0 (latest) — 2020-04-27
- 3.0.0 — 2020-04-26
- 2.2.2 — 2020-04-25
- 2.2.1 — 2020-04-25
- 2.2.0 — 2020-04-25
- 2.1.0 — 2015-09-06
- 2.0.0 — 2015-02-10
- 1.0.1 — 2014-05-20
- 1.0.0 — 2012-12-23

## README

<a href="https://promisesaplus.com/"><img src="https://promisesaplus.com/assets/logo-small.png" align="right" /></a>

# is-promise

  Test whether an object looks like a promises-a+ promise

 [![Build Status](https://img.shields.io/travis/then/is-promise/master.svg)](https://travis-ci.org/then/is-promise)
 [![Dependency Status](https://img.shields.io/david/then/is-promise.svg)](https://david-dm.org/then/is-promise)
 [![NPM version](https://img.shields.io/npm/v/is-promise.svg)](https://www.npmjs.org/package/is-promise)



## Installation

    $ npm install is-promise

You can also use it client side via npm.

## API

```typescript
import isPromise from 'is-promise';

isPromise(Promise.resolve());//=>true
isPromise({then:function () {...}});//=>true
isPromise(null);//=>false
isPromise({});//=>false
isPromise({then: true})//=>false
```

## License

  MIT

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