@jeydolen/config
v1.0.1
Published
Module that is used to read and store config.ini settings value
Downloads
4
Readme
Config
Config is a Javascript module used to add configurations setting to your application
Installation
Use the node package manager to install.
npm install @jeydolen/config
Usage
const Config = require ('@jeydolen/config')
const APP_ROOT_PATH = require ('app-root-path')
const unit_test = ( section_arg, key_arg, value_name ) =>
{
let args = { section : section_name, key: key_name, value_name: value_name };
let path = APP_ROOT_PATH + '/config.ini';
let message = Config.GetSingleton().addValue ( path, args );
console.log ( message )
};
// If config.ini, section_name and key_name exists
// It will technically return the value that is written in ini file for section_name and key_name specified
unit_test( Test, msg, example);