UNPKG

onion-config

Version:
20 lines (16 loc) 351 B
'use strict'; const AbstractLayer = require('./abstract'); /** * Simple layer to store config right out-of-code * @extends AbstractLayer */ class SimpleObjectLayer extends AbstractLayer { /** * @inheritDoc */ async init() { this.markInitialized(); this.data = this.options.data || {}; } } module.exports = SimpleObjectLayer;