{"library":"is-promise","type":"library","category":null,"description":"is-promise is a minimalist utility that determines if an object adheres to the Promises/A+ specification by duck-typing, specifically checking for the presence and function type of a `then` method. The package is currently at version 4.0.0, which primarily introduced a breaking change for TypeScript users regarding `PromiseLike` inference. While it doesn't follow a strict, rapid release cadence, major versions address significant compatibility updates, particularly concerning module resolution in Node.js environments and TypeScript definitions. Its key differentiator is its small footprint and focused API, providing a reliable and agnostic way to identify promise-like objects, useful in contexts where various promise implementations or thenables might be encountered, without relying on a global `Promise` constructor.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install is-promise","imports":["import isPromise from 'is-promise';","const isPromise = require('is-promise');"]},{"cmd":"yarn add is-promise","imports":[]},{"cmd":"pnpm add is-promise","imports":[]}],"homepage":null,"github":"https://github.com/then/is-promise","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/is-promise","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/is-promise/compatibility"}}