Skip to content
gets & sets config values from a mysql db
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
.gitignore
AUTHORS
LICENCE
README.md
config.js.dist
index.js
package.json
test.js

README.md

ee-config

gets & sets config values from a mysql db. depeds on a config file ( config.js in the project root )

var config = require( "ee-config" );

config.get( "key" ); config.set( "key", "value" );

config file:

module.exports = {
      database:         "dbName"
    , hosts: [
        {
              host:     "1dbHsot"
            , user:     "dbUser"
            , password: "dbPass"
            , weight:   "optional int ( used for load balancing )"
            , writable: true
        }
    ]
};
Something went wrong with that request. Please try again.