UNPKG

@steemit/steem-js

Version:

JavaScript library for the Steem blockchain

23 lines (22 loc) 609 B
"use strict"; var _each = _interopRequireDefault(require("lodash/each")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } const defaultConfig = require('../config.json'); class Config { constructor(c) { (0, _each.default)(c, (value, key) => { this[key] = value; }); } get(k) { return this[k]; } set(k, v) { this[k] = v; } } module.exports = new Config(defaultConfig); if (typeof module.exports.Config !== 'undefined') { throw new Error("default config.json file may not contain a property 'Config'"); } module.exports.Config = Config;