hcl2json-0.1.0 is not a library.
hcl2json
CLI program for converting HCL to JSON.
Installation
Usage
Convert a file from stdin
|
Convert multiple files to JSON
Note: When converting multiple files or directories the resulting JSON is a map keyed by input file path.
Recursively convert files from a directory
Note: The command above is equivalent to hcl2json dir/**/*.tf but may
have better performance in scripts when there are hundreds of matching files.
Simplify and pretty-print
Simplify HCL expressions where possible and emit pretty-printed JSON:
Similar tools
- tmccombs/hcl2json: Converts single HCL files. Sweet and simple.
- Bonial-International-GmbH/hcl2json: Supports bulk conversion but is generally slower than this implementation.
Contributing
Contributions are welcome! Please read
CONTRIBUTING.md
before creating a PR.
License
The source code of hcl2json is licensed under either of Apache License, Version 2.0 or MIT license at your option.