From 69ad8cd996a67d09e53c204568b594569ee40c86 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sun, 6 Feb 2022 16:22:14 +0100 Subject: [PATCH] Add script to convert JSON to YAML --- .bin/json-to-yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 .bin/json-to-yaml diff --git a/.bin/json-to-yaml b/.bin/json-to-yaml new file mode 100755 index 0000000..2449285 --- /dev/null +++ b/.bin/json-to-yaml @@ -0,0 +1,5 @@ +#!/usr/bin/env python + +import yaml, json, sys + +print(yaml.dump(json.load(open(sys.argv[1])), allow_unicode=True), end='')