Skip to main content
Module

x/libpkgx/src/deps.ts>outdent.outdent

`import`… but with pkging powers
Very Popular
Go to Latest
interface outdent.outdent
Re-export
import { type outdent } from "https://deno.land/x/libpkgx@v0.17/src/deps.ts";
const { outdent } = outdent;

Call Signatures

(strings: TemplateStringsArray, ...values: Array<any>): string

Remove indentation from a template literal.

(options: Options): Outdent

Create and return a new Outdent instance with the given options.

Methods

string(str: string): string

Remove indentation from a string

Properties

optional
trimLeadingNewline: boolean
optional
trimTrailingNewline: boolean
optional
newline: string | null

Normalize all newlines in the template literal to this value.

If null, newlines are left untouched.

Newlines that get normalized are '\r\n', '\r', and '\n'.

Newlines within interpolated values are never normalized.

Although intended for normalizing to '\n' or '\r\n', you can also set to any string; for example ' '.

variable outdent.outdent
Re-export
import { outdent } from "https://deno.land/x/libpkgx@v0.17/src/deps.ts";
const { outdent } = outdent;