CLI.JS(1)

πŸ“¦
version 2.2.3 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

✨ 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 β€” -v and -V are 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