Skip to main content
Module

x/which/mod.ts>Environment

Finds the path to the specified command in Deno.
Latest
interface Environment
import { type Environment } from "https://deno.land/x/which@0.3.0/mod.ts";

Properties

os: Deno.build.os

Gets the current operating system.

Methods

env(key: string): string | undefined

Gets an environment variable.

stat(filePath: string): Promise<Pick<Deno.FileInfo, "isFile">>

Resolves the Deno.FileInfo for the specified path following symlinks.

statSync(filePath: string): Pick<Deno.FileInfo, "isFile">

Synchronously resolves the Deno.FileInfo for the specified path following symlinks.