Skip to content

therealklanni/json5conv-cli

Repository files navigation

GitHub license Build Status npm prettier Beerpay

json5conv

Command-line JSON5 to JSON converter

Convert JSON5 to JSON from a file or stdin. Supports line-by-line parsing (i.e. convert each line as a separate JSON5 object).

Try it in combination with jp.

Install

yarn global add json5conv-cli

Or

npm install --global json5conv-cli

Usage

Pipe json5conv onto a JSON5 source to parse the output:
  cat data.json | json5conv [options]

Options:
  -f, --file          Read input from file                              [string]
  -L, --line-by-line  Parse each line as a separate input              [boolean]
  --help              Show help                                        [boolean]

License

MIT © therealklanni