gopher-hcl

0.2.0 • Public • Published

Gopher HCL

The official HCL library, compiled to JavaScript with GopherJS.

Installation

npm install --save gopher-hcl

Usage

const hcl = require('hcl')
const fs = require('fs')
 
const source = fs.readFileSync('test.hcl')
const result = hcl.parse(source)
 
console.log(result)

API

.parse(source: string | Buffer) => object

Parses the provided HCL and returns the javascript representation.

Readme

Keywords

none

Package Sidebar

Install

npm i gopher-hcl

Weekly Downloads

4

Version

0.2.0

License

MIT

Unpacked Size

1.08 MB

Total Files

4

Last publish

Collaborators

  • linusu