Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 1.4 KB

README.md

File metadata and controls

58 lines (34 loc) · 1.4 KB

yaml-prune

npm version CircleCI JavaScript Style Guide

A simple command line script that allows to prune parts of a yaml file

The command basically takes a YAML string from the standard input, a path option (as supported by object-path), removes the yaml branch identified by the path and prints in the standard output the resulting yaml content.

Install

Globally:

npm install --global yaml-prune

Or as a dev dependency (e.g. you need it as part of your build process)

npm install --save-dev yaml-prune

Usage

Using "pipes":

cat some.yml | yaml-prune

Using input redirection:

yaml-prune some.yml < file.yml

If you want to save the output to a file just use output redirection:

yaml-prune some.yml < file.yml > strippedFile.yml

Contributing

Everyone is very welcome to contribute to this project. You can contribute just by submitting bugs or suggesting improvements by opening an issue on GitHub.

License

Licensed under MIT License. © Luciano Mammino.