{"name":"p-is-promise","version":"2.1.0","description":"Check if something is a promise","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-is-promise.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","is","detect","check","kind","type","thenable","es2015","async","await","promises","bluebird"],"devDependencies":{"ava":"^1.4.1","bluebird":"^3.5.4","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"a265a233b3bbcad7ced3a11605c7ad16c59fe6ae","bugs":{"url":"https://github.com/sindresorhus/p-is-promise/issues"},"homepage":"https://github.com/sindresorhus/p-is-promise#readme","_id":"p-is-promise@2.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==","shasum":"918cebaea248a62cf7ffab8e3bca8c5f882fc42e","tarball":"http://registry-npm.ywwl.com/p-is-promise/download/p-is-promise-2.1.0.tgz","fileCount":5,"unpackedSize":3572,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcqJQ8CRA9TVsSAnZWagAAMPYP/jR2s9OEZbElrpUvPNm/\n3GQU439P9kFwIFcjWqhuuS4I4nYOjmo7WTDPW1HNFnU2PfwXmdDIBN8b0n9R\nwIdLIi6+nn4HNGj5/JUUMEElGTmpgN8e+7tN5+NCwl/g4VpMKnMd2m3rSl9x\nr9zHFkty7hsCsVDMbMtdJ8dp3Uf/sJxnS1mzIblohnYMJO9WyrVSJanDpFCq\ncVomBArHszNKSicQRrQsJqzZRd4QTavzKjZ7lnPA1zqftx/38IEeK/MHdMZj\nX/2KTtFGbyNbB/9fYsITkhUkLKQITxZWLleYoS7FPobguiEgyYdTxWD8JnEx\n5pbioO7jzXo4F0TzdzORPRDHrBPIoLDbEui9GxqoTGBp2CkxgRkKlHHLX9/y\nHSAhOSRDGmNLgaqH/wD+wlPoGkXUe5x2vSNJ0EQHBgkramQ5xV3nX+OshvUv\nFBnU6+XSN2A3crMALrgoQT2D7jTdFVW/5kyIDsM6gO0+AIU/wYFsR+bLtJno\nRUDv5XWxLIExBwj4MUZCNX333yO6v2RjCuXpyamqFBUwePa1Q9NMZk4PvGZ6\nCuVSCU1x7+1QtTXIV/9OtmuictbVoKGRhckK7KD5h5rqazuZeF3Q0Dp4BErr\nzmkVhxpRal97XrKzXyAbpZ2LpC5q008tE08A+ajMZqO3PVBtKdL//l7ViFdn\nzZGb\r\n=MmxY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeQWUz2CGh1DLELdUrz2ZgcYxQv1d44JMHgQPnSLcYtQIhAIyIOyMG+2B2NG2zUFvkICjSUdRtW8he+l0Fu1X+Aioq"}],"size":1937,"noattachment":false,"key":"/p-is-promise/-/p-is-promise-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-is-promise_2.1.0_1554551867873_0.050121990378975134"},"_hasShrinkwrap":false,"readme":"# p-is-promise\n\n> Check if something is a promise\n\nWhy 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.\n\nYou most likely don't need this. Just pass your value to `Promise.resolve()` and let it handle it.\n\nCan be useful if you need to create a fast path for a synchronous operation.\n\n## Install\n\n```\n$ npm install p-is-promise\n```\n\n## Usage\n\n```js\nimport isPromise from 'p-is-promise';\nimport Bluebird from 'bluebird';\n\nisPromise(Promise.resolve('🦄'));\n//=> true\n\nisPromise(Bluebird.resolve('🦄'));\n//=> true\n\nisPromise('🦄');\n//=> false\n```\n\n## Related\n\n- [is](https://github.com/sindresorhus/is) - Type check values\n- [More…](https://github.com/sindresorhus/promise-fun)\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-p-is-promise?utm_source=npm-p-is-promise&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1554551868017,"_cnpm_publish_time":1554551868017,"dist-tags":{"latest":"4.0.0"}}