{"name":"p-is-promise","version":"3.0.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":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","is","detect","check","kind","type","thenable","es2015","async","await","promises","bluebird"],"devDependencies":{"ava":"^2.1.0","bluebird":"^3.5.4","tsd":"^0.7.2","xo":"^0.24.0"},"xo":{"rules":{"promise/prefer-await-to-then":"off"}},"gitHead":"bb27245a9650c2ad91b6e23b9c683a8b4cb2509b","bugs":{"url":"https://github.com/sindresorhus/p-is-promise/issues"},"homepage":"https://github.com/sindresorhus/p-is-promise#readme","_id":"p-is-promise@3.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-Wo8VsW4IRQSKVXsJCn7TomUaVtyfjVDn3nUP7kE967BQk0CwFpdbZs0X0uk5sW9mkBa9eNM7hCMaG93WUAwxYQ==","shasum":"58e78c7dfe2e163cf2a04ff869e7c1dba64a5971","tarball":"http://registry-npm.ywwl.com/p-is-promise/download/p-is-promise-3.0.0.tgz","fileCount":5,"unpackedSize":3312,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGjDoCRA9TVsSAnZWagAAWk8P/i+uy/PjUdrH+jz2sXSP\nEhNH/kIa69iENo927GqXkY8Ry8ZmSeTksEcyC1+W7P+P30mHHMkHcOU2w5ml\n2vkphzXWIjJv+wqG9KufJqYyjnw+lL6tAIEJiBytyyEYRa5oPl0fiGUT2dby\nb0ENGjpF8l52QIUtbFXG1IYcya+/VEfXBTM9CF14fF5n86xsZzcQs/6mLkQM\nAHZMLcD+ubyTdzcSMJuQC5AcSg94CyypGQG79JQHkJmBMd2qRDdA0KXR/wN9\nmbiqvnOyhDZH5HOJe6iHnWGSU2ssqISHWGmsEGDB4YEc3zKUCjYYx/YUO+AW\n7nFNjdLkuzo6KcjbIudutElAFw6y5/YMpeE8nIQLoC2/gehGEEBqPkqP4pmf\nfnVnX4ejL07O+a2YEgcaIsT121ZE5+jhcIbfQoDOSgZqzIRgdTGO5QYQsR3r\nSsmat79+9XL8cFpU0aJyEWCayMXWhHft2RM6c8uH4GBEneHc7KHSSntKxICS\ndwpfPESQbJ38MogkIX2EP3va6JItsvnkHjeOnnhjA0Ju9YcBE5uG7A2cCoeX\n4txjTnHn/8yMqUZ1SvLOX33pd/F6pZ2Q2sptrkOp4+X/B8uB8L34tnfm6Vps\nY9lPgzIVkKzSmLDZMI42m3B4EjsEaZ47zcDR0Hj6uGStReyHNHtUTwaO1BhI\niPPh\r\n=lkiP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFax90CNDz4lXF8odF0NuY62+8WjEAmK8BxVEaa36YVXAiEAxNxw9pQaTkjB61fI6AHdCB7zT+pFMGabKGASVJnDNnc="}],"size":1850,"noattachment":false,"key":"/p-is-promise/-/p-is-promise-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-is-promise_3.0.0_1561997543520_0.9288862605672519"},"_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":1561997543648,"_cnpm_publish_time":1561997543648,"dist-tags":{"latest":"4.0.0"}}