The official HCL library, compiled to JavaScript with GopherJS.
npm install gopher-hclThe official HCL library, compiled to JavaScript with GopherJS.
``sh`
npm install --save gopher-hcl
`js
const hcl = require('hcl')
const fs = require('fs')
const source = fs.readFileSync('test.hcl')
const result = hcl.parse(source)
console.log(result)
``
Parses the provided HCL and returns the javascript representation.