Check whether an object looks like Hybrid which is promises-a+ promise and callback api
npm i is-hybrid --save npm test
For more use-cases see the tests
var gotPromise =var isPromise =var gotHybrid =var isHybrid =var assert =var hybrid =var promise =console//=> tests pass
- hybridify: Building hybrid APIs. You can use both callback and promise in same time. Like… more
- is-missing: Check that given
user/repoexists 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-ofand in bonus functional api.
- thenify: Promisify a callback-based function