configuration component for nodulus.
npm install @nodulus/config
var config=require("@nodulus/config").config;
var consts=require("@nodulus/config").consts;
var settings = config.appSettings;
{
"name": "nodulus",
"url": "",
"port": "4000",
"appRoot": "/",
"enableSockets": true,
"database": {
"mongodb": {
"useObjectId": true,
"host": "---mongo url---"
}
||
{ "diskdb": { "host": "server/data" } }
}
}
SET CONFIG_PATH = '--config--path--'
persistConfiguration()
persistModules()
mergeConfiguration(configuration_to_merge: any, key: string)