This library is meant to house commonly used HCL tools by CDKTF. Currently, it only
supports the hclwrite Golang library and
specifically the Format
function.
import { format } from "@cdktf/hcl-tools";
const unformattedHcl = `
resource "random_pet" "my_pet" {
}
`
const formatted = await format(unformattedHcl);