From c40ec295f9a4267f5678ec521fd72b963d4b9264 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sat, 27 Jan 2018 17:50:32 +0100 Subject: bin: added json2yaml.rb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a simple ruby script that outputs a JSON input as YAML. Signed-off-by: Miquel Sabaté Solà --- bin/json2yaml.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bin/json2yaml.rb (limited to 'bin/json2yaml.rb') diff --git a/bin/json2yaml.rb b/bin/json2yaml.rb new file mode 100755 index 0000000..4f77f8b --- /dev/null +++ b/bin/json2yaml.rb @@ -0,0 +1,6 @@ +#!/usr/bin/env ruby + +require 'json' +require 'yaml' + +puts JSON.parse(ARGF.read).to_yaml -- cgit v1.2.3