An open API service indexing awesome lists of open source software.

https://github.com/seatgeek/node-hcl

This WebAssembly wrapper provides a convenient way to use the HCL (HashiCorp Configuration Language) library in your Node applications.
https://github.com/seatgeek/node-hcl

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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

```javascript
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!