Interface TarStreamFileExperimental
interface TarStreamFile {
options?: TarStreamOptions;
path: string;
readable: ReadableStream<Uint8Array>;
size: number;
type: "file";
}
options?: TarStreamOptions;
path: string;
readable: ReadableStream<Uint8Array>;
size: number;
type: "file";
}
Properties
Optional Experimentaloptions
The metadata of the file.
Experimentalpath
path: string
The path to the file, relative to the archive's root directory.
Experimentalreadable
readable: ReadableStream<Uint8Array>
The contents of the file.
Experimentalsize
size: number
The size of the file in bytes.
Experimentaltype
type
The type of the input.
The interface required to provide a file.
UNSTABLE: New API, yet to be vetted.