yamlify-object
Version:
Stringify object/array with yaml syntax
22 lines • 798 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getConfig = exports.defaultConfig = void 0;
var errorToString_js_1 = require("./errorToString.js");
var dateToString_js_1 = require("./dateToString.js");
var colors_js_1 = require("./colors.js");
exports.defaultConfig = {
indent: ' ',
prefix: '\n',
postfix: '',
errorToString: errorToString_js_1.errorToString,
dateToString: dateToString_js_1.dateToString,
colors: colors_js_1.colors,
};
function getConfig(config) {
if (config === void 0) { config = {}; }
return Object.assign({}, exports.defaultConfig, config, {
colors: Object.assign({}, colors_js_1.colors, config.colors),
});
}
exports.getConfig = getConfig;
//# sourceMappingURL=config.js.map