UNPKG

whaler

Version:

Define and run multi-container applications with Docker

15 lines (12 loc) 378 B
'use strict'; const yaml = require('js-yaml'); const unsafe = require('js-yaml-js-types').all; const schema = yaml.DEFAULT_SCHEMA.extend(unsafe); module.exports = { load: (string, options = {}) => { return yaml.load(string, { schema, ...options }); }, dump: (object, options = {}) => { return yaml.dump(object, { indent: 2, ...options }); } };