0.1.4 • Published 5 years ago

cfn-parser v0.1.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

cfn-parser

CloudFormation template parser.

Installation

npm i cfn-parser

makeTemplateParser(options = {})

  • options.anyResourceTypeParser
    • A parser to parse a resource that is not defined in options.resourceTypeParser.
    • The parser must be a function that has arguments (dataRef, context, callback).
  • options.resourceTypeParsers
    • An object that defines parsers to parse CloudFormation resources.
    • A key of this object must be a string of a CloudFormation resource type.
    • A value of this object must be a function that has arguments (dataRef, context, callback).
  • options.schemaMap

This function returns the following function:

parser(template, context, callback)
  • template
    • An object of CloudFormation template.
  • context
  • callback(err, context)
    • A function that is called when parsing template is completed, or an error occurs.

License

MIT

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago