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.
- Host: GitHub
- URL: https://github.com/seatgeek/node-hcl
- Owner: seatgeek
- License: apache-2.0
- Created: 2024-09-09T19:41:15.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-11-19T16:22:59.000Z (6 months ago)
- Last Synced: 2024-11-19T17:28:34.794Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 174 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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!