pconf

1.1.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i pconf

Weekly Downloads

7

Version

1.1.6

License

MIT

Last publish

Collaborators

  • pellej