Skip to content
This repository has been archived by the owner on Aug 29, 2019. It is now read-only.

deathart/simple-config-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published