1 Bun provides built-in APIs for common developer tasks such as reading and writing files, with lazy loading and browser-like file object properties.
“Bun has baked in APIs for the things you need most as a developer. Now, for example, if you want to read a file, you can just use bun file. Bun file returns a file object. It has the same properties as the file API in browsers.”