UNPKG

@accounter/shaam-uniform-format-generator

Version:

Fully typed application that generates, parses, and validates SHAAM uniform format tax reports (INI.TXT and BKMVDATA.TXT).

18 lines (17 loc) 475 B
"use strict"; /** * Fixed-width decoding utilities */ Object.defineProperty(exports, "__esModule", { value: true }); exports.decodeFixedWidth = decodeFixedWidth; /** * Decodes a fixed-width string value * * @param line - The line to decode from * @param start - Start position (0-based) * @param length - Field length * @returns Decoded and trimmed value */ function decodeFixedWidth(line, start, length) { return line.substring(start, start + length).trim(); }