json5(1)

Command line for the JSON5 Data Interchange Format (JSON5)

Section 1 node-json5 bookworm source

Description

CLI.JS

NAME

cli.js - Command line for the JSON5 Data Interchange Format (JSON5)

DESCRIPTION

Usage: json5 [options] <file>

If <file> is not provided, then STDIN is used.

Options:

-s, --space

The number of spaces to indent or ’t’ for tabs

-o, --out-file [file]

Output to the specified file, otherwise STDOUT

-v, --validate

Validate JSON5 but do not output JSON

-V, --version

Output the version number

-h, --help

Output usage information