{"name":"p-is-promise","version":"2.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":">=6"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["promise","is","detect","check","kind","type","thenable","es2015","async","await","promises","bluebird"],"devDependencies":{"ava":"^0.25.0","bluebird":"^3.4.6","tsd-check":"^0.2.1","xo":"^0.23.0"},"gitHead":"959b6f32892c494b57656bdba24e895057c9fbae","bugs":{"url":"https://github.com/sindresorhus/p-is-promise/issues"},"homepage":"https://github.com/sindresorhus/p-is-promise#readme","_id":"p-is-promise@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-pzQPhYMCAgLAKPWD2jC3Se9fEfrD9npNos0y150EeqZll7akhEgGhTW/slB6lHku8AvYGiJ+YJ5hfHKePPgFWg==","shasum":"7554e3d572109a87e1f3f53f6a7d85d1b194f4c5","tarball":"http://registry-npm.ywwl.com/p-is-promise/download/p-is-promise-2.0.0.tgz","fileCount":5,"unpackedSize":3295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbqKuxCRA9TVsSAnZWagAAhsMQAIzIKV559cIOK6w5Y4dr\nJYc5g9Jndc5QZmEoAqgF3E0lPwI6Is0FJCdFzTecJhdIkHAcL60kdaAmyYtz\nIxe7C30GYzqr1qjM2kj1xkr9WtWJQ2Ik9hn8iuv6O+GHktv3mWzOqa+lpzhZ\nmV9HrxDQILyGkC/Cr3mD2cito8XniMayWhHSjMoKd6ENyxbOMaB6Hj82gJwb\nzusuQe37S/5MJIAbxoNtQdYAj3k7qQ1VorLaRs8NGHq6RS4vCtbyc6SveI4/\nDxWR6bdSSdNtCfGSsttbjKfwMI9qMWLQAt/l4VsGwM6vj5g8m3HvPT7hExvo\nt88Kw79oMnizrQGxAWgwrOfSm8+ps4ffE4gzGVyRK2MbONDWOOVPEyIgg86q\nwT8pXYCJceSMw92rOsqM+YgPZ+Zc6CglCX8/AGCwXFAzrA2OkiRFOiFeb+Jw\nGwHMy5mjklAPkkYNugj14i8jcKegZTsehcqL+W89jHO3tJa/uZAXh+ejFELe\n8d38awa8C14RZwJ40rqYBv52jllDAGZGjI8Efwd7yovVWlNmdKjjSoyZIrkg\nxD8uYzV1rI0+DqdEvSiUCLAe0NcnjB66GF9qObISsfxrA1Zbovw1Yqv3gljp\n5siUT+WGL6f8wAXPAC32gQxcMyRXBrsXO+44lFLTUmSs+6KcjtodFmNPo08T\nHAcb\r\n=M4+u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAZYZ1cVy8pAB+JUsrLVAGY1H50WGvcplMRUi7iDsvAPAiBE4MxvgtKbtbgNGiihw+/ounKg7uIneX3OO7X9VMSc7g=="}],"size":1843,"noattachment":false,"key":"/p-is-promise/-/p-is-promise-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-is-promise_2.0.0_1537780656764_0.16366292883755174"},"_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":1537780656896,"_cnpm_publish_time":1537780656896,"dist-tags":{"latest":"4.0.0"}}