HCL Parser

JSON →
library 0.1.1 ·javascript
verified May 27, 2026

The `hcl-parser` package provides a JavaScript parser for HashiCorp Configuration Language (HCL). As of version 0.1.1, it functions as a direct transpilation of the official `hashicorp/hcl` Go library using GopherJS. This approach aims to offer high fidelity and compatibility with the authoritative HCL parsing logic, distinguishing it from independent JavaScript re-implementations. The library processes HCL input strings, returning a tuple-like result `[data, err]` where `data` is the parsed JSON object and `err` is a potential error object, mirroring Go's idiomatic error handling. Given its early version, the release cadence is likely irregular, and it's primarily designed for scenarios requiring precise HCL interpretation within JavaScript environments, particularly Node.js applications. This tool is beneficial for integrating with HashiCorp products where HCL configuration needs to be programmatically read or manipulated.

total hits 10
actors 6 distinct systems
last hit 8d ago Script
GPTBot
2
Script
1
ClaudeBot
1
Search engines
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇳🇴 Norway · 🇩🇪 Germany