summaryrefslogtreecommitdiff
path: root/toml2json.py
diff options
context:
space:
mode:
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=(',',':'))