Add script to convert JSON to YAML
This commit is contained in:
5
.bin/json-to-yaml
Executable file
5
.bin/json-to-yaml
Executable file
@@ -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='')
|
||||||
Reference in New Issue
Block a user