#json-toml #convert-json #cli #tool #format #command-line-tool

app json2toml

A simple CLI tool to convert json files into toml format

2 releases

0.1.2 Dec 5, 2024
0.1.1 Jan 13, 2023

#835 in Command line utilities

Download history 5/week @ 2024-08-31 18/week @ 2024-09-07 14/week @ 2024-09-14 65/week @ 2024-09-21 8/week @ 2024-09-28 18/week @ 2024-10-05 3/week @ 2024-10-12 24/week @ 2024-10-19 12/week @ 2024-10-26 17/week @ 2024-11-02 12/week @ 2024-11-09 26/week @ 2024-11-16 11/week @ 2024-11-23 164/week @ 2024-11-30 75/week @ 2024-12-07 11/week @ 2024-12-14

264 downloads per month

MIT license

8KB
71 lines

json2toml

A simple CLI tool that converts json files to toml files. The created file's name matches the input file, but with the .toml extension instead of .json.

Inspired heavily by toml2json.

Usage:

json2toml [filename]

Example:

Input:

// file.json
{
    "key": "value"
}

Output:

# output.toml
key = "value"

Dependencies

~1.5–2.2MB
~40K SLoC