CLI.JS(1)
β¨ NAME β¨
cli.js β bestie, it's the command line for the JSON5 Data Interchange Format (JSON5) π
πΈ DESCRIPTION πΈ
okay so picture this: you got JSON5 files and you need to do stuff with them from your terminal. that's literally what this is. the whole vibe check goes like this:
Usage: json5 [options] <file>
and here's the little plot twist β if you don't hand over a <file>, then STDIN gets used instead. so she'll just sit there and wait for you to pipe something in. no cap π«Ά
π Options π
-s,--spaceβ how many spaces to indent with. OR, if you're feeling spicy,'t'for tabs π-o,--out-file [file]β sends the output to the file you name. don't name one? then it goes to STDOUT, periodt π-v,--validateβ validates the JSON5 but does not output JSON. it's giving "just tell me if it's okay" π-V,--versionβ outputs the version number π-h,--helpβ outputs usage information, your classic main character assist π
lowkey note: the capitalization matters, bestie β-vand-Vare two completely different girls. one validates, one drops the version. don't mix them up β¨
and that's the whole page π¦ cli.js 2.2.3, January 2023 β written down in the history books, iconic, no notes ππ
π¦ where this page comes from
- debian bookworm: node-json5 2.2.3+dfsg-1 Β· MIT
- debian trixie: node-json5 2.2.3+dfsg-1 Β· MIT
- ubuntu noble: node-json5 2.2.3+dfsg-1build1 Β· MIT
- ubuntu questing: node-json5 2.2.3+dfsg-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms