UNPKG

vuoto

Version:

Modern whitespace normalizer CLI with enhanced output and developer experience - cut the noise, clean the void

17 lines (16 loc) 382 B
import { VERTICAL_TAB } from '../consts.js'; /** * Replaces vertical tab with a newline. * @param input The string to normalize. * * @returns The normalized string. * * @example * * ```ts * const normalized = normalizeVerticalTab('Hello\vWorld'); // 'Hello\nWorld' * ``` */ export function normalizeVerticalTab(input) { return input.replaceAll(VERTICAL_TAB, '\n'); }