Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

merge-yaml-cli

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merge-yaml-cli

CLI utility for merging YAML files

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 06 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc