{"version":"1.0","type":"rich","title":"node ls","description":"This visualization demonstrates a directory listing, showing the names of files and folders in a specified directory path. It reads the directory contents using the Node.js `fs.promises` API’s `readdir` method, which returns an array of file names. The code then iterates over each file and outputs its name to the console using `console.log`, providing a simple, text-based representation of the directory’s structure. The example accepts an optional directory path as a command-line argument, defaulting to the current directory if none is provided.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-7b63306c332df983267b20555c1a3d48?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}