Skip to main content
Module

x/denops_std/argument/opts.ts>formatOpt

📚 Standard module for denops.vim
Go to Latest
function formatOpt
import { formatOpt } from "https://deno.land/x/denops_std@v5.0.2/argument/opts.ts";

Format key and value to construct string array.

import { Denops } from "../mod.ts";
import { formatOpt } from "./mod.ts";

export async function main(denops: Denops): Promise<void> {
  console.log(formatOpt("enc", "sjis"));
  // "++enc=sjis"
}

Parameters

key: string
value: string | undefined

Returns

string[]