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

CabinetRead

import { CabinetRead } from "https://raw.githubusercontent.com/dan-online/cabinet/master/mod.ts";
@example
const { reader } = new Cabinet("./file.txt");
reader.sync()
class CabinetRead {
constructor(fs: Cabinet);
private fs: Cabinet;
filePath: string;
 
callback(cb: cbErrFile);
promise();
read(callback?: cbErrFile);
sync();
}

§Constructors

§
new CabinetRead(fs: Cabinet)
[src]

§Properties

§
filePath: string
[src]

Path to the file

§Methods

§
callback(cb: cbErrFile)
[src]

Read the file and receive a callback

§
promise()
[src]

Read the file and receive a promise

§
read(callback?: cbErrFile)
[src]

Read the file with an optional callback

§
sync()
[src]

Synchronously read the file