UNPKG
deepmerge-yaml
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
deep merge yaml
github.com/kahirokunn/deepmerge-yaml
kahirokunn/deepmerge-yaml
deepmerge-yaml
/
esm
/
index.js
6 lines
(5 loc)
•
197 B
JavaScript
View Raw
1
2
3
4
5
6
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)))); }