1.0.1 • Published 8 years ago
yaml-prune v1.0.1
yaml-prune
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-pruneOr as a dev dependency (e.g. you need it as part of your build process)
npm install --save-dev yaml-pruneUsage
Using "pipes":
cat some.yml | yaml-pruneUsing input redirection:
yaml-prune some.yml < file.ymlIf you want to save the output to a file just use output redirection:
yaml-prune some.yml < file.yml > strippedFile.ymlContributing
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.