@augment-vir/node
Version:
A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.
13 lines (12 loc) • 440 B
TypeScript
/**
* Finds the path to an npm package executable bin by searching in all ancestor `node_modules/.bin`
* folders, starting at the given `startPath`.
*
* @category Node : Npm
* @category Package : @augment-vir/node
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
*/
export declare function findNpmBinPath({ binName, startPath, }: {
startPath: string;
binName: string;
}): string | undefined;