hcl to js (and js to hcl1)
npm install hcl2js
or
yarn add hcl2js
Usage
const hcl2js = ; const hcl = `"output" = { "pet" = { "value" = "cat" }}`; const js = "output": "pet": "value": "cat" ; ; ;
Observe that the hcl is of version 1 when converting js objects to hcl