kevin tessier 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
..
.npmignore 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
.travis.yml 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
LICENSE 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
index.js 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
package.json 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
readme.md 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos

readme.md

is-promise

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

Build Status Dependency Status NPM version

Installation

$ npm install is-promise

You can also use it client side via npm.

API

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

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

License

MIT