Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kd_clients/mod.ts>RepoClient#getFileContentInternal

Various HTTP clients for miscellaneous use.
Latest
method RepoClient.prototype.getFileContentInternal
import { RepoClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.14/mod.ts";

Gets the content of a file in a repository with a name that matches the given RepoClient.repoName, on a branch with a name that matches the given ref at the given relativeFilePath.

Parameters

ref: string

The name of the branch.

relativeFilePath: string

The relative path of the file.

Returns

Promise<FileContentModel>

The content of the file and a boolean flag indicating whether or not the file exists.