interface FileOptions {
    endings?: "transparent" | "native";
    lastModified?: number;
    type?: string;
}

Properties

endings?: "transparent" | "native"

One of either 'transparent' or 'native'. When set to 'native', line endings in string source parts will be converted to the platform native line-ending as specified by import { EOL } from 'node:os'.

lastModified?: number

The last modified date of the file. Default: Date.now().

type?: string

The File content-type.