@seatgeek/node-hcl
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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!

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.2139latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.2139
1.0.10
1.0.01

Package Sidebar

Install

npm i @seatgeek/node-hcl

Weekly Downloads

140

Version

1.0.2

License

Apache-2.0

Unpacked Size

2.07 MB

Total Files

23

Last publish

Collaborators

  • seatgeek