Download packages/core/src/utils/binaryCheck.ts from SaylorTwift/gemini-cli: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/core/src/utils/binaryCheck.ts
- Command line
-
hf download hf://SaylorTwift/gemini-cli/packages/core/src/utils/binaryCheck.ts
-
curl -L -o binaryCheck.ts https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/core/src/utils/binaryCheck.ts
320 Bytes
| /** | |
| * @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); | |
| } | |