This library makes it possible to run terraform fmt
command for a list of files with the help of Node.js.
A variation of this library needs to be developed every single time a developer wants to automatically apply formatting to a group of files (e.g. on git commit hook).
npm install terraform-fmt
terraform-fmt file1 file2 ... fileN