Skip to main content
Module

x/denops_std/function/mod.ts>strtrans

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

The result is a String, which is {string} with all unprintable characters translated into printable characters |'isprint'|. Like they are shown in a window. Example: echo strtrans(@a) This displays a newline in register a as "^@" instead of starting a new line. Can also be used as a |method|: GetString()->strtrans()

Parameters

denops: Denops
string: unknown

Returns

Promise<unknown>