# ispromise

> Test whether an object is a promises/A+ object or constructor.

Latest version **1.1.0** (published 2017-04-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install ispromise
pnpm add ispromise
yarn add ispromise
bun add ispromise
```

## 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.0 |
| Published | 2017-04-04 |
| First published | 2015-08-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | dracupid |
| Maintainers | dracupid |
| Keywords | promise, type, is, promise/A+ |

## Links

- npm: https://www.npmjs.com/package/ispromise
- Repository: https://github.com/dracupid/ispromise
- Homepage: https://github.com/dracupid/ispromise#readme
- Issues: https://github.com/dracupid/ispromise/issues
- npm.io page: https://npm.io/package/ispromise

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-04-04
- 1.0.0 — 2015-08-09

## README

<a href="http://promisesaplus.com/">
    <img src="http://promisesaplus.com/assets/logo-small.png" alt="Promises/A+ logo"
         title="Promises/A+ 1.1 compliant" align="right" />
</a>

ispromise
======
Test whether an object/function is a promises/A+ object/function or constructor. More powerful then [`is-promise`](https://github.com/then/is-promise).

[![NPM version](https://badge.fury.io/js/ispromise.svg)](https://www.npmjs.com/package/ispromise)
[![Build Status](https://travis-ci.org/dracupid/ispromise.svg)](https://travis-ci.org/dracupid/ispromise)

## Installation
```bash
npm i ispromise -S
```

## Usage
```javascript
var isPromise = require('ispromise');

isPromise(Promise) // false
isPromise(Promise.resolve()) // true
isPromise.isConstructor(Promise) // true
```

## License
MIT@Jingchen Zhao

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