1.0.2 • Published 9 months ago

@seatgeek/node-hcl v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
9 months ago

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!

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago