UNPKG

@stryke/fs

Version:

A package containing various file system utilities that expand the functionality of NodeJs's built-in `fs` module.

22 lines 965 B
//#region src/command-exists.d.ts /** * Asynchronously checks if a command exists in the system. * * @remarks * This function will check if the command is available in the system's PATH and if it is executable. * @param commandName - The name of the command to check for existence * @returns A promise that resolves to `true` if the command exists and is executable, `false` otherwise */ declare function commandExists(commandName: string): Promise<void>; /** * Synchronously checks if a command exists in the system. * * @remarks * This function will check if the command is available in the system's PATH and if it is executable. * @param commandName - The name of the command to check for existence * @returns `true` if the command exists and is executable, `false` otherwise */ declare function commandExistsSync(commandName: string): boolean; //#endregion export { commandExists, commandExistsSync }; //# sourceMappingURL=command-exists.d.cts.map