Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 553 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 553 Bytes

node-hcl

This WebAssembly wrapper for https://github.com/hashicorp/hcl provides a convenient way to use the HCL (HashiCorp Configuration Language) library in Node.js.

Usage

yarn add @seatgeek/node-hcl

Merge HCL content

import { merge } from "@seatgeek/node-hcl";

const a = `
variable "a" {
  type        = string
  description = "Variable A"
  default     = "a"
}`;
const b = `
variable "b" {
  type        = string
  description = "Variable B"
  default     = "b"
}`;
const result = merge(a, b);

Happy coding!