import { environment } from "https://deno.land/x/denops_std@v6.5.1/variable/mod.ts";
Environment variables (environment
or e
)
import type { Entrypoint } from "https://deno.land/x/denops_std@v6.5.1/mod.ts";
import { environment } from "https://deno.land/x/denops_std@v6.5.1/variable/mod.ts";
export const main: Entrypoint = async (denops) => {
// Set environment variable
await environment.set(denops, "DENOPS_HELLO", "world");
// Get environment variable
console.log(await environment.get(denops, "DENOPS_HELLO"));
// Remove environment variable
await environment.remove(denops, "DENOPS_HELLO");
}