DATA-VIEWER(1)

πŸ“¦
version 2.018 Β· 2 versions
, in fedora 43

πŸ’– data_viewer β€” the manual, but make it cute πŸ’–

okay bestie, welcome to data_viewer(1), from the User Contributed Perl Documentation section of the manual. she's a lil Perl script and she's here to open a whole widget for your data. no cap. πŸ¦‹


✨ NAME ✨

data_viewer β€” open a data viewer widget for your JSON or YAML data πŸŽ€


✨ SYNOPSIS ✨

# view json file
data_viewer file.json

# viewn yaml file
data_viewer file.yml

# pipe json data
data_viewer -json < file.json

# pipe yaml data
data_viewer -yaml < file.yml

(yes the comment says "viewn". that is not a typo i made, that is a typo she made, and honestly? iconic. we keep it. πŸ’…)


✨ DESCRIPTION ✨

so basically this command opens a Tk::ObjScanner widget for the data chilling inside your YAML or JSON file. it's giving "your data, but as a little explorable window" 🫢

you can run it on a file you pass as an argument, OR you can pipe data straight into data_viewer. both work. she's flexible like that. 😌

and quick note on file suffixes for YAML: the suffix can be yaml or yml β€” she accepts both, she's not picky. 🌸


✨ OPTIONS ✨

  • -json β€” parse the data as JSON. πŸ“
  • -yaml β€” parse the data as YAML. 🧚

that's the whole list. two options. short and slay. ✨


✨ BUGS ✨

not everything is perfect and we're gonna be honest about it, no gatekeeping here πŸ’€

  • YAML anchors and aliases are ignored. so the data shows up looking duplicated in the widget. it's not a you problem, it's just how she is. 😭
  • JSON objects are shown as "HASH", which is straight-up Perl terminology. if you're not a Perl person that's gonna be a jumpscare. πŸ™ˆ

✨ SEE ALSO ✨

  • Tk::ObjScanner πŸ‘‘

✨ POD ERRORS ✨

hey! the above document had some coding errors, which are explained below:

Around line 120:

=cut found outside a pod block.  Skipping to next block.

(she's a little messy. we love her anyway.)


πŸ’– mwah πŸ’– this was perl v5.42.0, dated 2025-07-25, straight outta the User Contributed Perl Documentation. that's the whole page, bestie β€” go look at some data. πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from