Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.
Go to Latest
function scanLine
import { scanLine } from "https://deno.land/x/indent_and_wrap@v0.0.15/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