Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Experiments with doing cJSON with includes for configuration management

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
README.md

OConf

This is currently a experiment with putting some semi-random ideas about how configuration can be done in a convenient manner into code.

The basic idea is to experiment with applying #include-statements recusively inside JSON/cJSON documents:

// default-settings.cjson
{
    "some-setting": "default value",
    "value": 100
}
// my-config.cjson
{
    "#include": "./default-settings.json",
    "value": 50
}

Will result in a config with:

{
    "some-setting": "default-value",
    "value": 50
}

Tests

Download/clone, run npm install --dev and then npm test.

License

The software is provided under the Modified BSD License; See LICENSE for further details.

Something went wrong with that request. Please try again.