UNPKG

@apillon/cli

Version:
14 lines 583 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.readAndParseJson = void 0; /* eslint-disable security/detect-non-literal-fs-filename */ const fs_1 = __importDefault(require("fs")); function readAndParseJson(filePath) { const fileContent = fs_1.default.readFileSync(filePath); return JSON.parse(fileContent.toString()); } exports.readAndParseJson = readAndParseJson; //# sourceMappingURL=files.js.map