Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ddc_vim/deps.ts>fn.environ

Dark deno-powered completion framework for neovim/Vim8
Very Popular
Go to Latest
function fn.environ
import { fn } from "https://deno.land/x/ddc_vim@v3.9.0/deps.ts";
const { environ } = fn;

Return all of environment variables as dictionary. You can check if an environment variable exists like this:

:echo has_key(environ(), 'HOME')

Note that the variable name may be CamelCase; to ignore case use this:

:echo index(keys(environ()), 'HOME', 0, 1) != -1

Returns

Promise<Record<string, unknown>>