{"_id":"@cjser/p-is-promise","name":"@cjser/p-is-promise","dist-tags":{"latest":"4.0.0-cjser.2"},"versions":{"4.0.0-cjser.2":{"name":"@cjser/p-is-promise","version":"4.0.0-cjser.2","description":"Check if something is a promise","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"require":"./dist-cjser/index.cjs","default":"./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"}},"main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"4.0.0","cjserVersion":2,"original":{"name":"p-is-promise","version":"4.0.0","exports":"./index.js","repository":"sindresorhus/p-is-promise","files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/p-is-promise@4.0.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-CqTZ7Qck/5r+o/P0bD0YPvSpZ0C0AamrAmJufPUGKNACK7gVL11AIiZT76UGAFhc7Rei5TKMlfW3KCeDJ0iKOw==","shasum":"d9d979a57554ef680fc4444089ee80f4891cf6b4","tarball":"https://registry.npmjs.org/@cjser/p-is-promise/-/p-is-promise-4.0.0-cjser.2.tgz","fileCount":6,"unpackedSize":5935,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBEaM2Kl2huMXPNeDbfP1ADwo48e2xmo64VU46sHieDOAiEA2IM17D15pQ0pWbBVMELWEOGu8GlRE6HBUXvUiVDqCTQ="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/p-is-promise_4.0.0-cjser.2_1778159360456_0.42246081357344356"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:09:20.378Z","4.0.0-cjser.2":"2026-05-07T13:09:20.599Z","modified":"2026-05-07T13:09:21.308Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Check if something is a promise","keywords":["promise","is","detect","check","kind","type","thenable","es2015","async","await","promises","bluebird"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/p-is-promise\n","readmeFilename":"readme.md","_rev":"1-fca9faba95e8b2a189c9f58ee81f7626"}