No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
.gitignore
LICENSE
README.md
package.json

README.md

configJSON

Usage :

var config_json = require('simple-config-json'),
    option_for_config = {
    Directory : "./config/",
    debug : false
}

var config = new config_json("config1", option_for_config);

//Normal

console.log("Value for 'test_replace' : " + config.GetLine("test_replace", "deathart"));
console.log("Value for 'test' : " + config.GetLine("test"));
console.log("Value for 'username' : " + config.GetLine("username"));

//Block

console.log("Value for 'first_block' : " + config.GetBlock("first_block", "block_test"));
console.log("Value for 'deux_block' : " + config.GetBlock("deux_block", "block_test", "deathart"));

//Add line

config.SelLine({"test_set" : "settings add", "blabla_set" : "blabla_set is OK"});

//Delete line

config.Del("test_replace");