appcd-config

3.0.7 • Public • Published

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.

/appcd-config/

    Package Sidebar

    Install

    npm i appcd-config

    Weekly Downloads

    4

    Version

    3.0.7

    License

    Apache-2.0

    Unpacked Size

    13.1 kB

    Total Files

    5

    Last publish

    Collaborators

    • cb1kenobi
    • awam
    • tisdk