nodejs-video-streamer/node_modules/is-promise
2025-09-26 16:57:09 +05:30
..
index.d.ts A Simple Node JS code to stream video files 2025-09-26 16:57:09 +05:30
index.js A Simple Node JS code to stream video files 2025-09-26 16:57:09 +05:30
index.mjs A Simple Node JS code to stream video files 2025-09-26 16:57:09 +05:30
LICENSE A Simple Node JS code to stream video files 2025-09-26 16:57:09 +05:30
package.json A Simple Node JS code to stream video files 2025-09-26 16:57:09 +05:30
readme.md A Simple Node JS code to stream video files 2025-09-26 16:57:09 +05:30

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

import isPromise from 'is-promise';

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

License

MIT