From 193f4933a8a83ee191b5d3bb8b8b8237dc03bf7d Mon Sep 17 00:00:00 2001 From: Marin Ivanov Date: Wed, 21 Aug 2024 03:30:16 +0300 Subject: make toml config --- toml2json.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 toml2json.py (limited to 'toml2json.py') diff --git a/toml2json.py b/toml2json.py new file mode 100644 index 0000000..320b414 --- /dev/null +++ b/toml2json.py @@ -0,0 +1,4 @@ +import sys, json, tomllib + +data = tomllib.load(open(0,'rb',closefd=False)) +json.dump(data, sys.stdout, separators=(',',':')) -- cgit v1.2.3