JS Utils Kit
    Preparing search index...

    Function prependEnv

    • Prepend a value to an existing environment variable.

      Parameters

      • k: string

        Environment variable name

      • v: string

        Value to prepend

      • sep: ";" | ":" = delimiter

        Separator

      Returns void

      • Works similarly to appendEnv but places the new value at the beginning of the variable.
      • This is often used to prioritize a binary path.
      prependEnv("PATH", "/my/bin");