appcd-config

Library for config files with metadata.

Usage no npm install needed!

<script type="module">
  import appcdConfig from 'https://cdn.skypack.dev/appcd-config';
</script>

README

appcd-config

Appc Daemon configuration object.

Visit https://github.com/appcelerator/appc-daemon for more information.

Report issues to GitHub issues. Official issue tracker in JIRA.

Installation

npm i appcd-config

Usage

import AppcdConfig from 'appcd-config';

const conf = new AppcdConfig({
    data: {
        some: {
            setting: 'value'
        }
    }
});

conf.load('/path/to/js-or-json-file');

conf.get('some.setting');

conf.watch(obj => {
    console.log('config changed!', obj);
});

conf.set('some.setting', 'another value');

Legal

This project is open source under the Apache Public License v2 and is developed by Axway, Inc and the community. Please read the LICENSE file included in this distribution for more information.