Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/args/utils.ts>makeIndent

Extensible CLI arguments parser for Deno with intelligent TypeScript inference
Go to Latest
function makeIndent
import { makeIndent } from "https://deno.land/x/args@2.0.7/utils.ts";

Convert a multi-line string into an iterator of lines, with each line being prefixed

Parameters

text: string

Multi-line string

indent: string

Prefix to each line