Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ hcl.js Public

Utilities to work with HCL files in JavaScript

License

3p3r/hcl.js

Repository files navigation

hcl.js

Utilities to work with HCL files in JavaScript

const { hcl2json, treeSitterHcl } = require('hcl.js');
// https://github.com/tmccombs/hcl2json (patched)
hcl2json('a = 1').then(console.log); // { a: 1 }
// https://github.com/tree-sitter-grammars/tree-sitter-hcl
treeSitterHcl().then((parser) => {
  const tree = parser.parse('a = 1');
  console.log(tree.rootNode.toString());
});

About

Utilities to work with HCL files in JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published