Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/indent_and_wrap/private/indent.ts>scanLine

Finds and replaces common indent, hard-wraps text, generates text tables and table-based complex text layouts. Can work on text that contains terminal escape sequences.
Latest
function scanLine
import { scanLine } from "https://deno.land/x/indent_and_wrap@v0.0.17/private/indent.ts";

Returns position where next line begins, and length of line-break characters at the end of the skipped line.

Parameters

text: string
i: number
nColumn: number
wrapWidth: number
overflowWrap: boolean
tabWidth: number
tabsToSpaces: boolean
isTerm: boolean