@nodulus/socket

0.0.3 • Public • Published

@nodulus/config

configuration component for nodulus.

NPM

Alt text Alt text

install

npm install @nodulus/config

usage

var config=require("@nodulus/config").config;
var consts=require("@nodulus/config").consts;

var settings = config.appSettings;

config file format

{
 "name": "nodulus",
 "url": "",
 "port": "4000",
 "appRoot": "/",
 "enableSockets": true,
 "database": {
   "mongodb": {
     "useObjectId": true,
     "host": "---mongo url---"
   }
   ||
   { "diskdb": { "host": "server/data" } }
 }
}

set config file location

 SET CONFIG_PATH = '--config--path--'
 

config object api

persistConfiguration()

persistModules()

mergeConfiguration(configuration_to_merge: any, key: string)

Readme

Keywords

none

Package Sidebar

Install

npm i @nodulus/socket

Weekly Downloads

1

Version

0.0.3

License

ISC

Last publish

Collaborators

  • nodulus