{"name":"p-is-promise","version":"4.0.0","description":"Check if something is a promise","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-is-promise.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","is","detect","check","kind","type","thenable","es2015","async","await","promises","bluebird"],"devDependencies":{"ava":"^3.15.0","bluebird":"^3.7.2","tsd":"^0.14.0","xo":"^0.38.2"},"xo":{"rules":{"promise/prefer-await-to-then":"off"}},"gitHead":"e4ca18e2cdde865e0809b0e97e5803436918528d","bugs":{"url":"https://github.com/sindresorhus/p-is-promise/issues"},"homepage":"https://github.com/sindresorhus/p-is-promise#readme","_id":"p-is-promise@4.0.0","_nodeVersion":"14.16.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-4G3B+86qsIAX/+ip/yhHX9WUcyFKYkQYtE5bGkjpZyGK0Re53RbHky2UKt6RQVkDbUXb8EJRb4iga2SaI360nQ==","shasum":"479ef05c0577aafb62e807224cedf7484525134f","tarball":"http://registry-npm.ywwl.com/p-is-promise/download/p-is-promise-4.0.0.tgz","fileCount":5,"unpackedSize":3766,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeTaLCRA9TVsSAnZWagAAzkMQAIkUyR1XQujNqTLa5ePX\nstBjPPlFKgkO7PTBneP4E2igQ1B0QVX+LBgyEyaEvphGTASLi4+5S8pEys0G\nctnylbowCfPy5DrCWThgxief4/x6e5E4uimh39Ret9vmIdajAqeiDx5kdG1m\n0weQcJBh8TXop/2bE7V6g76LbWAfhDcqTY3gHarPIcY2lUh+FG4RIESkkvEW\nrJv82hp0jwvgtzch3t+RkPhKMdfg5vx6Kz7farXBumKEjzT6LDGY8pWs3SaX\no1VvEXWgHLH35t9cwJ2Pe9rvC0wkmIjFEQeNd+AF8BqGePHWVn/xHRf2s/uR\n4csH+29lZ912BEOmZN1UhFCv+WZf2FHfhtQ4gMeUqXle9GQml+ZrIbN2A2VA\n+2mMjilgF6N02crbl4+RjBBB2eg2Cz/AHlVAWaaTQurg3lOIfFmnWMWLf9i+\nnpJ8OdKHsEoaCjs+gY9zA8BtONDDMcp4aVtT9tTlak6rXKiKdJ/A1fW6kAHH\niEXCdK0pF3Z2bRYV7KLF0h7xbnZUOIpFeO57qKeLwTEki3mhqTCgrHGDcMK5\n3+GMjvxb3y8RN/ytfucbKZxVjm2ACA+CowSJnvLIcZZvPkGFbSJj8TyX0mAq\nVzp9rTiIJGS+eiSozLWymHB+yYpu+ypmhxr1w42+ydfkWH7UTbx2bWox1K//\nitTB\r\n=yFMK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEb3cmZW362DYyynEO0OBy29/ergYeECzESz/4gWa9x3AiEAlcPPyGHCBgKDdCN0JYAj7Hw6hNyKQ6cVmTeM/wTp99k="}],"size":2063,"noattachment":false,"key":"/p-is-promise/-/p-is-promise-4.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-is-promise_4.0.0_1618556554692_0.9766552655543208"},"_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":1618556554848,"_cnpm_publish_time":1618556554848,"dist-tags":{"latest":"4.0.0"}}