Skip to main content
FileOptions - buffer - Node documentation
interface FileOptions

Usage in Deno

import { type FileOptions } from "node:buffer";

Properties

optional
endings: "native" | "transparent"

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'.

optional
type: string

The File content-type.

optional
lastModified: number

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

Back to top