Skip to content

Merge 2 yaml files and outputs to console or given output file.

Notifications You must be signed in to change notification settings

Bisnode/yaml-merger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yaml-merger

Merge 2 yaml files and outputs to console or given output file.

Installation

$ npm install -g yaml-merger

Usage

$ yaml-merger -h

  Merge 2 yaml files.

  Usage
    $ yaml-merger -i <fileA.yaml> -i <fileB.yaml> [-o output.yaml]

  Options
    -i, --input  Input files, define 2
    -o, --output Output file, if omited outputs to console
    --mergePath  Change root path in first file to be merged in
    -v           Verbose console logging
    -h, --help   Shows this help

Examples

testA.yaml file:

keyA: aValue
keyDeep:
  a: deepA
  b: deepB
keyArray:
- itemOne
- itemTwo
- 3

testB.yaml file:

keyA: aValue
keyDeep:
  a: deepX
keyArray:
- itemFour
$ yaml-merger fileA.yaml fileB.yaml
keyA: aValue
keyDeep:
  a: deepX
  b: deepB
keyArray:
  - itemOne
  - itemTwo
  - 3
  - itemFour

About

Merge 2 yaml files and outputs to console or given output file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published