UNPKG

node-dependency-injection

Version:

The NodeDependencyInjection component allows you to standardize and centralize the way objects are constructed in your application.

26 lines (22 loc) 406 B
import BaseAdapter from './BaseAdapter' export default class YamlAdapter extends BaseAdapter { /** * @param {js-yaml} yaml */ constructor (yaml) { super() this._yaml = yaml } /** * @return {string} */ static get FORMAT () { return 'yaml' } /** * @return {string} */ get defaultConfiguration () { return this._yaml.dump(super.defaultConfiguration) } }