DATA-VIEWER(1)
π 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
- fedora 43: perl-Tk-ObjScanner 2.018-6.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms