Provides a custom js-yaml schema that allows parsing and dumping CloudFormation YAML files while ignoring or handling CloudFormation-specific local tags like !Ref, !Base64, !GetAtt, etc. Current stable version 0.4.2. Useful for linting, validation, and transformation of CloudFormation templates in JavaScript. Differentiates from general YAML parsers by preserving CFN intrinsic functions without throwing parse errors. Release cadence is low (last update May 2021).
npm install cloudformation-js-yaml-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses CloudFormation YAML with CFN tags using custom schema.
Access tags via obj['!Ref'] or similar, not as plain strings.
Always pass { schema: cloudformationSchema } to yaml.load/dump when working with CloudFormation templates.Import { tags } from 'cloudformation-js-yaml-schema' instead of reading tags.json.Set schema: cloudformationSchema in yaml.load options.
Use the cloudformationSchema as shown in quickstart.
Run npm install js-yaml.