1 # p-is-promise [![Build Status](https://travis-ci.org/sindresorhus/p-is-promise.svg?branch=master)](https://travis-ci.org/sindresorhus/p-is-promise)
3 > Check if something is a promise
5 Why not [`is-promise`](https://github.com/then/is-promise)? That module [checks for a thenable](https://github.com/then/is-promise/issues/6), not an ES2015 promise. This one is stricter.
7 You most likely don't need this. Just pass your value to `Promise.resolve()` and let it handle it.
9 Can be useful if you need to create a fast path for a synchronous operation.
15 $ npm install p-is-promise
22 const pIsPromise = require('p-is-promise');
23 const Bluebird = require('bluebird');
25 pIsPromise(Promise.resolve('🦄'));
28 pIsPromise(Bluebird.resolve('🦄'));
38 - [More…](https://github.com/sindresorhus/promise-fun)
43 MIT © [Sindre Sorhus](https://sindresorhus.com)