Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 860 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 860 Bytes

merge-yaml-ts

Known Vulnerabilities Standard - JavaScript Style Guide

NPM

This is Typescript wrapper utility over js-yaml which will merge the multiple yaml fles and safeload them and return the parsed yml.

Example

import { mergeFiles } from 'merge-yaml-ts';
const input = [
  __dirname + '/config1.yml',
  __dirname + '/config2.yml',
];
const test = mergeFiles(input);

Tests

The repo contains linter, formatter, and the one simple unit test. All of this can be run with npm run default.