aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 498 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports.readYamlSync=exports.readJsonSync=void 0;const fs=require("fs"),yaml_cfn=require("./private/yaml-cfn");function readJsonSync(filePath){const fileContents=fs.readFileSync(filePath);return JSON.parse(fileContents.toString())}exports.readJsonSync=readJsonSync;function readYamlSync(filePath){const fileContents=fs.readFileSync(filePath);return yaml_cfn.deserialize(fileContents.toString())}exports.readYamlSync=readYamlSync;