@jeydolen/config

1.0.1 • Public • Published

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);

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @jeydolen/config

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.84 kB

Total Files

3

Last publish

Collaborators

  • jeydolen