Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 

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

About

No description, website, or topics provided.

Resources

License

Releases

No releases published
You can’t perform that action at this time.