UNPKG

@nanocollective/nanocoder

Version:

A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter

20 lines 788 B
/** * Compresses indentation for compact display in narrow terminals. * Converts all indentation to 2-space units regardless of original style. * Detects whether the file uses 2, 4, or tab-based indentation. * * Example: * Input: ["function test() {", "\t\treturn 1;", "}"] * Output: ["function test() {", " return 1;", "}"] */ export declare function compressIndentation(lines: string[]): string[]; /** * Detects the minimum indentation level in a set of lines and returns * normalized lines with relative indentation. * * Example: * Input: [" const x = 1;", " const y = 2;"] * Output: ["const x = 1;", "\tconst y = 2;"] */ export declare function normalizeIndentation(lines: string[]): string[]; //# sourceMappingURL=indentation-normalizer.d.ts.map