Skip to main content
File - node__buffer.d.ts - Node documentation
class File
extends Blob

Usage in Deno

```typescript import { File } from "node:node__buffer.d.ts"; ```
A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) provides information about files.

Constructors

new
File(
sources: Array<BinaryLike | Blob>,
fileName: string,
options?: FileOptions,
)

Properties

readonly
lastModified: number
The last modified date of the `File`.
readonly
name: string
The name of the `File`.
interface File
extends _File
variable File
`File` class is a global reference for `import { File } from 'node:buffer'` https://nodejs.org/api/buffer.html#class-file

Type

globalThis extends { onmessage: any; File: infer T; } ? T : buffer