HCL Parser
JSON →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.
Traffic · last 30 days ↓100% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇳🇴 Norway · 🇩🇪 Germany