UNPKG

quickapi-cli

Version:

Esta librería se encargará de generar automáticamente clientes para consumir APIs a partir de descripciones como OpenAPI/Swagger o Postman.

1 lines 495 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parsePostman=void 0;const helper_1=require("../utils/helper"),parsePostman=e=>{try{const r=(0,helper_1.readJSONFile)(e);if("object"!=typeof r||null===r)throw new Error("El archivo no contiene un objeto JSON válido.");return r}catch(e){const r=e instanceof Error?e.message:"Error desconocido";throw new Error(`Error al parsear el archivo Postman: ${r}`)}};exports.parsePostman=parsePostman,exports.default=parsePostman;