Skip to main content
Module

x/denops_std/function/mod.ts>getenv

📚 Standard module for denops.vim
Go to Latest
function getenv
import { getenv } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

Return the value of environment variable {name}. The {name} argument is a string, without a leading '$'. Example:

myHome = getenv('HOME')

When the variable does not exist v:null is returned. That is different from a variable set to an empty string, although some systems interpret the empty value as the variable being deleted. See also expr-env.

Can also be used as a method:

GetVarname()->getenv()

Parameters

denops: Denops
name: unknown

Returns

Promise<string>