DATA-VIEWER(1p)

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

okay bestie, so this is DATA-VIEWER(1p) from the Perl world, and it's literally just a lil command that pops open a whole widget for your JSON or YAML data. she's giving "I don't do cat and squint, I do ✨visualize✨". no cap. πŸ¦‹


🌸 NAME 🌸

data_viewer β€” opens 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 and yes we are keeping it exactly as-is, that's her little typo and it's iconic, we respect it πŸ™ˆ)


πŸ’… DESCRIPTION πŸ’…

this command opens a Tk::ObjScanner widget for the data stored in a YAML or JSON file. main character behavior honestly.

and the way you can use it is lowkey flexible: you can hand it a file as an argument, or you can pipe the data straight into data_viewer. either one, she's ready. 🫢

quick note for the girlies: the YAML file suffix can be yaml or yml. both slay, both work.


🌈 OPTIONS 🌈

  • -json β€” parse the data as JSON. that's the whole vibe. ✨
  • -yaml β€” parse the data as YAML. equally valid, equally gorgeous. πŸ’œ

πŸ’€ BUGS πŸ’€

okay so, full transparency, here's what's a lil broken, no gatekeeping:

  • YAML anchor and aliases are ignored. so the data is seen as duplicated in the widget. like, it's all there, but it's giving twins where there should be one girlie. 😭
  • JSON objects are showed as "HASH", which is Perl terminology. not a JSON thing, not a YAML thing, just Perl being Perl. πŸ’€

🫢 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.

(not me snitching on the doc's own formatting, but the manpage said it so we say it πŸ’…)


and that's the whole page, bestie!! perl v5.36.0, dated 2023-10-27, DATA-VIEWER(1p) β€” go open a viewer and look at your data in style. obsessed with her fr fr. πŸŽ€βœ¨πŸ’–πŸ¦‹πŸŒΈπŸ‘‘

πŸ“¦ where this page comes from