is-promise

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

npm install is-promise
6 162 downloads in the last day
31 960 downloads in the last week
145 387 downloads in the last month

is-promise

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

Installation

Client:

$ component install then/is-promise

Server:

$ npm install is-promise

API

var isPromise = require('is-promise');

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

License

MIT

npm loves you