pconf
v1.1.6
Published
An thin module for making easy configurations.
Downloads
3
Readme
#pConf
##Install
###Install with npm
npm install pconf
##Requirements
This library will only work if you have access to your computers HOME directory, which in the most cases is where your user is located. To run a project with pconf, you need to have a package.json for your project, and start it with npm start
.
##How to use
var Config = require("pconf");
var testConfig = new Config("testConfig");
testConfig.onload = function(){
testConfig.setValue("test", 1, true); // key, value, (autosave, default=true)
console.log(testConfig.getValue("test")); //Returns value of key, if it is unset, it will return undefined.
testConfig.saveConfig(); // Saves the config
};
##Author
####Per Henrik Jakobsson
##License
Copyright (c) 2016 Per Henrik Jakobsson
Released under the MIT license