0.0.0-alpha.0 • Published 4 years ago

@tkint/hocon-parser v0.0.0-alpha.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

License: ISC codecov npm

hocon-parser

Javascript library to parse HOCON (Human-Optimized Config Object Notation)

Usage

Browser

This library can be used as a ES module in compatible browsers :

<script type="module">
  import { parseHocon } from 'https://unpkg.com/@tkint/hocon-parser?module';

  const parsed = parseHocon('hello = "world"');
</script>

Take a look at the browser example for further details.

NPM

It can also be used in a node project :

npm install @tkint/hocon-parser

In a Node project, you can then use it as follow :

const { parseHocon } = require('@tkint/hocon-parser');

const parsed = parseHocon('hello = "world"');

Take a look at the node example for further details.

There is also a vue example with typescript support.

Features

Not everything is yet implemented, but I plan to do so. Here is the current state :

FeatureImplemented
String valueyes
Number valueyes
String concatenationyes
Boolean valueyes
Object valueyes
Array valueyes
Null valueyes
Object mergeno
Substitutionpartial
Commentsyes
0.0.0-alpha.0

4 years ago

1.0.1-alpha

4 years ago

1.0.0-alpha

4 years ago

1.0.0

4 years ago