summaryrefslogtreecommitdiff
path: root/toml2json.py
diff options
context:
space:
mode:
authorMarin Ivanov <[email protected]>2024-08-21 03:30:16 +0300
committerMarin Ivanov <[email protected]>2024-08-21 03:30:16 +0300
commit193f4933a8a83ee191b5d3bb8b8b8237dc03bf7d (patch)
tree3ee0c8a99c73e60840723267834c1e22a468713b /toml2json.py
parent3ea3e8694dca23910c10552d24d804b344f7adb9 (diff)
make toml config
Diffstat (limited to 'toml2json.py')
-rw-r--r--toml2json.py4
1 files changed, 4 insertions, 0 deletions
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=(',',':'))