UNPKG

openapi-route-expander

Version:

A utility for resolving $ref in OpenAPI YAML routes, generating new YAML files without $ref, ready for OpenAPI processing.

17 lines 550 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.YAMLUtil = void 0; const yaml_1 = __importDefault(require("yaml")); class YAMLUtil { static parse(fileContent) { return yaml_1.default.parse(fileContent); } static stringify(yaml) { return yaml_1.default.stringify(yaml); } } exports.YAMLUtil = YAMLUtil; //# sourceMappingURL=y-a-m-l.util.js.map