UNPKG

deepmerge-yaml

Version:
6 lines (5 loc) 197 B
import * as yaml from 'js-yaml'; import deepmerge from 'deepmerge'; export function deepmergeYaml(...files) { return files.reduce((a, b) => yaml.dump(deepmerge(yaml.load(a), yaml.load(b)))); }