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.
12 lines • 471 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const print_1 = require("../utils/print");
const parseNullLiteral = (txt) => {
(0, print_1.debugPrint)('-> Entered parseNullLiteral(..)');
if (txt.toLowerCase() !== 'null') {
throw Error('Syntax Error: Unexpected token or character; expected `Null` literal (case-insensitive)');
}
return null;
};
exports.default = parseNullLiteral;
//# sourceMappingURL=parseNull.js.map