Skip to main content
Module

x/cabinet/mod.ts>CabinetFile

Cabinet, the easier way to manage files in Deno
Go to Latest
class CabinetFile
Re-export
import { CabinetFile } from "https://deno.land/x/cabinet@v1.1.0/mod.ts";

Examples

Example 1

new CabinetFile(Cabinet, resolve("./file.txt"), "12345")

Constructors

new
CabinetFile(
fs: Cabinet,
filePath: string,
data: Uint8Array,
)

Properties

private
readonly
info
readonly
contents

File contents

readonly
data: Uint8Array

Raw file contents

readonly
ext

Extension of the file

readonly
mime

Mime of the file

readonly
path: string

Path of the file

readonly
size

Size of the file

readonly
type

Type of the file

Methods

Encode to base64