UNPKG

yini-parser

Version:

Readable configuration without YAML foot-guns or JSON noise. The official Node.js parser for YINI config format — An INI-inspired configuration format with clear nesting, explicit types, and predictable parsing.

15 lines (14 loc) 564 B
import { ErrorDataHandler } from '../core/errorDataHandler'; import { TSectionHeaderType } from '../core/internalTypes'; import { StmtContext } from '../grammar/generated/YiniParser'; /** * Extract ... * @param rawLine Raw line with the section header. * @note Implemented without regexp to keep it less cryptic, etc. */ declare const parseSectionHeader: (rawLine: string, errorHandler: ErrorDataHandler, ctx: null | StmtContext) => { markerType: TSectionHeaderType; sectionName: string; sectionLevel: number; }; export default parseSectionHeader;