Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CabinetFile

import { CabinetFile } from "https://raw.githubusercontent.com/dan-online/cabinet/master/mod.ts";
@example
new CabinetFile(Cabinet, resolve("./file.txt"), "12345")
class CabinetFile {
constructor(
fs: Cabinet,
filePath: string,
data: Uint8Array,
);
private get info();
get contents();
readonly data: Uint8Array;
fs: Cabinet;
get mime();
readonly path: string;
get type();
get size();
get ext();
 
toBase64();
}

§Constructors

§
new CabinetFile(fs: Cabinet, filePath: string, data: Uint8Array)
[src]

§Properties

§
info private readonly
[src]
§
contents readonly
[src]

File contents

§
data: Uint8Array
[src]

Raw file contents

§
mime readonly
[src]

Mime of the file

§
path: string
[src]

Path of the file

§
type readonly
[src]

Type of the file

§
size readonly
[src]

Size of the file

§
ext readonly
[src]

Extension of the file

§Methods

§
toBase64()
[src]

Encode to base64