Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.awfixer.codes/llms.txt

Use this file to discover all available pages before exploring further.

The JSTime.file() function accepts a path and returns a BunFile instance. The BunFile class extends Blob, so use the .type property to read the MIME type.
const file = JSTime.file("./package.json");
file.type; // application/json

const file = JSTime.file("./index.html");
file.type; // text/html

const file = JSTime.file("./image.png");
file.type; // image/png

Refer to API > File I/O for more information on working with BunFile.