Skip to content

This WebAssembly wrapper provides a convenient way to use the HCL (HashiCorp Configuration Language) library in your Node applications.

License

Notifications You must be signed in to change notification settings

seatgeek/node-hcl

Repository files navigation

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!

About

This WebAssembly wrapper provides a convenient way to use the HCL (HashiCorp Configuration Language) library in your Node applications.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published