@nebius/js-sdk - v0.2.54
    Preparing search index...

    Function resolveHomeDir

    • Expands a leading ~ to the current user's home directory.

      The function expands only ~ and paths that start with ~/ (or the native separator). It does not expand ~user, environment variables, or a ~ in the middle of a path. If no home directory is available, it returns the input unchanged.

      Parameters

      • path: string

      Returns string

      import { resolveHomeDir } from '@nebius/js-sdk/runtime/util/path';

      resolveHomeDir('~/.nebius/config.yaml');