cfn-template-yaml-to-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

cfn-template-yaml-to-js

CircleCI Coverage Status semantic-release Commitizen friendly npm version

Converts AWS CloudFormation templates written in yaml directly to JS object expressions.

Note: block literals will be converted to dedent`...` tagged template literals; you will need to import dedent or dedent-js into the file using them.

Disclaimer

I wrote this package hastily, so it's possible it won't work on some templates. Feel free to open an issue if you run into any problems.

Usage

npm i -g cfn-template-yaml-to-js

CLI

# read from file, print to stdout

cfn-template-yaml-to-js template.yaml

# read from file, output to file

cfn-template-yaml-to-js template.yaml > file.js

# read from stdin, print to stdout

cat template.yaml | cfn-template-yaml-to-js

/cfn-template-yaml-to-js/

    Package Sidebar

    Install

    npm i cfn-template-yaml-to-js

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    415 kB

    Total Files

    10

    Last publish

    Collaborators

    • jedwards1211