Skip to content

cfn2/cfn2-read-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@cfn2/read-template

Read templates of CloudFormation.

Installation

npm i @cfn2/read-template

Usage

const { readTemplate } = require('@cfn2/read-template');

readTemplate('path/to/template-file', (err, template) => {
});

readTemplate(path, callback)

  • 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.

License

MIT