seb

sebconfig

Tool helping management of a config file

Showing:

Popularity

Downloads/wk

1

GitHub Stars

0

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

0.5KB

License

GPL-3.0

Type Definitions

Tree-Shakeable

No?

Categories

Readme

sebconfig.js

Simple module for managing a config file in nodeJS

Full usage example :

var Config = require("./config.js");

var config = new Config("./config.json", {autoSave: true}, function(error) {
    if (error) {
        console.log(error);
    }
    main();
});

function main() {
    if (config.has("key1.key2.key3")) {
        var value = config.get("key1.key2.key3");
        console.log("value: " + value);
    }

    config.set("key1.key2bis.key3bis", null);

    if (config.has("key1.key2bis.key3bis")) {
        var value = config.get("key1.key2bis.key3bis");
        console.log("value2: " + value);
    }
}

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100