mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
JS: Added ripple.config.load convenience function.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
// This object serves as a singleton to store config options
|
||||
|
||||
module.exports = {};
|
||||
var extend = require("extend");
|
||||
|
||||
var config = module.exports = {
|
||||
load: function (newOpts) {
|
||||
extend(config, newOpts);
|
||||
return config;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -11,3 +11,5 @@ exports.Seed = require('./amount').Seed;
|
||||
// the official client, it makes sense to expose the SJCL instance so we don't
|
||||
// have to include it twice.
|
||||
exports.sjcl = require('../../build/sjcl');
|
||||
|
||||
exports.config = require('./config');
|
||||
|
||||
Reference in New Issue
Block a user