Check whether an object looks like Hybrid which is promises-a+ promise and callback api
Install
npm i is-hybrid --save
npm test
Usage
For more use-cases see the tests
var gotPromise = var isPromise = var gotHybrid = var isHybrid = var assert = var hybrid = var promise = console//=> tests pass
See also
- hybridify: Building hybrid APIs. You can use both callback and promise in same time. Like… more
- is-missing: Check that given
name
oruser/repo
exists in npm registry or in github as user… more - is-installed: Checks that given package is installed on the system - globally or locally.
- is-promise: Test whether an object looks like a promises-a+ promise
- is-generator: Check whether a value is a generator or generator function
- is-kindof: Thin wrapper around
kind-of
and in bonus functional api. - thenify: Promisify a callback-based function
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. But before doing anything, please read the CONTRIBUTING.md guidelines.