{"library":"which-promise","type":"library","category":null,"description":"which-promise is a JavaScript utility library that provides a Promise-based API for locating executable programs within a user's system `PATH` environment variable. It functions as a direct, promisified wrapper around the robust and widely used `node-which` library, offering a modern, asynchronous interface to a fundamental system operation. The package is currently at version 1.0.0, indicating a stable and mature API that is unlikely to see frequent breaking changes. As a wrapper, its release cadence is closely tied to updates and bug fixes in its underlying dependency, `node-which`, primarily focusing on stability and compatibility across different Node.js versions and operating systems. Its primary differentiator is simplifying the asynchronous lookup of executables by leveraging native JavaScript Promises, making it straightforward to integrate into contemporary `async/await` workflows, which is a significant improvement over traditional callback-based approaches. It is particularly valuable in Node.js development for scripting, tooling, and applications that require programmatic discovery of system binaries.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","which","bin","binary","path","executable","resolve","find","check"],"last_verified":"Wed May 27","install":[{"cmd":"npm install which-promise","imports":["const whichPromise = require('which-promise');","const whichPromise = require('which-promise');","// No specific type import needed for basic usage, but for TypeScript:\nimport whichPromise = require('which-promise');"]},{"cmd":"yarn add which-promise","imports":[]},{"cmd":"pnpm add which-promise","imports":[]}],"homepage":null,"github":"https://github.com/shinnn/which-promise","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/which-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/which-promise/compatibility"}}