A command-line utility to convert TOML to JSON.
npm install -g toml2js
$ toml2js test/simple.toml
{ "foo": "bar", "anArray": [ 1, 3, 5, 7 ], "bool": true, "one": 1 }
EXIT STATUS
The toml2js utility exits with one of the following values:
Code | Description |
---|---|
0 | input was parsed successfully. |
1 | failed to parse input. |
2 | An error occurred while reading input. |
MIT