1.1.2 • Published 6 years ago

merge-yaml-cli v1.1.2

Weekly downloads
2,795
License
MIT
Repository
github
Last release
6 years ago

merge-yaml-cli

Known Vulnerabilities Standard - JavaScript Style Guide CircleCI

NPM

Merges YAML files together using glob patterns to specify input files, with a CLI to write out the result as a file.

Usage

npm i -g merge-yaml-cli
merge-yaml -i example.yaml includes/*.yml -o merged.yml

Node.js API

const mergeYaml = require('merge-yaml-cli')

mergeYaml.on('files', console.log('Files found: ', files))

const result = mergeYaml.merge(['example.yml', 'includes/*.yml'])

Tests

The repo contains one simple test case. tests/base.yml is merged with includes/*.yml and the output is compared with expected.yml.

The test can be run with yarn test or npm test but requires Docker and Docker Compose to be installed.

1.1.2

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago