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

nightly app json2toml

A simple CLI tool to convert json files into toml format

1 unstable release

0.1.1 Jan 13, 2023

#33 in #convert-json

MIT license

6KB
61 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–2MB
~38K SLoC