Read templates of CloudFormation.
npm i @cfn2/read-template
const { readTemplate } = require('@cfn2/read-template');
readTemplate('path/to/template-file', (err, template) => {
});path- A path to read a template.
callback(err, template)- A callback which is called when parsing of a template is finished, or an error occurs.
- If the template is YAML, abbreviated syntax is expanded.
MIT