File size: 320 Bytes
7a1ad33
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * @license
 * Copyright 2026 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */

import { sync as commandExistsSync } from 'command-exists';

/**
 * Checks if a binary is available in the system PATH.
 */
export function isBinaryAvailable(binaryName: string): boolean {
  return commandExistsSync(binaryName);
}