Skip to content

configDir ​

configDir returns the user's platform-standard config directory (e.g. ~/.config on Linux).

SignatureconfigDir(): string
tyrus
import { configDir } from "tyrus:os";

const config: string = configDir();
print(`config: ${config}`);

Never fails the program

Falls back to an empty string if it cannot be determined, rather than aborting the program.