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.strtrans

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

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>