{"version":"1.0","type":"rich","title":"Gist 474c05b31ba635a5938112a1efb5e7ef","description":"This example demonstrates reading a file from disk using Node.js’s synchronous file system APIs, specifically `fs.openSync`, `fs.readSync`, and `fs.closeSync`. It reads the first 4 KB chunk of `public/index.html` into a `Buffer`, converts that slice to a UTF-8 string, and prints it to the console. The code also includes a commented-out asynchronous equivalent using `fs.open`, `fs.read`, and `fs.close`, showing both approaches side by side.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-474c05b31ba635a5938112a1efb5e7ef?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}