Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@alexlafroscia/yaml-merge
Advanced tools
yaml-merge
A super simple tool for merging YAML files.
Node v6 or higher is required.
npm install -g @alexlafroscia/yaml-merge
npm install --save @alexlafroscia/yaml-merge
yaml-merge
takes a series of yaml
files and merges them from left to right. This means that the first file will be overwritten by properties of the second, which is overwritten by properties of the third, etc.
When using this tool from the command line, the output file will simply be written to STDOUT
yaml-merge test/fixtures/basic/a.yml test/fixtures/basic/b.yml
a:
foo: bar
b:
foo: bar
This way, you can pipe the output to whatever you want. For example, this will write the new yaml
file to output.yml
yaml-merge test/fixtures/basic/a.yml test/fixtures/basic/b.yml > output.yml
The provided file names will be resolved relative to the current directory. So, you an provide a relative path to the files, or an absolute path -- either method works just fine.
yaml-merge
also provides a node
package that can be consumed to get the output file programmatically.
const resolve = require('path').resolve;
const merge = require('yaml-merge');
const output = merge(resolve('relative/path/to/file.yml'), '/Users/you/some/other/file.yml');
console.log(output); // Writes out the resulting file, as a string
FAQs
A super simple tool for merging YAML files
The npm package @alexlafroscia/yaml-merge receives a total of 6,451 weekly downloads. As such, @alexlafroscia/yaml-merge popularity was classified as popular.
We found that @alexlafroscia/yaml-merge demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.