fetchFile()
Home > @backstage/plugin-scaffolder-node
> fetchFile
A helper function that reads the content of a single file from the given URL. Can be used in your own actions, and also used behind fetch:plain:file
Signature:
function fetchFile(options: {
reader: UrlReaderService;
integrations: ScmIntegrations;
baseUrl?: string;
fetchUrl?: string;
outputPath: string;
token?: string;
}): Promise<void>;
Parameters
Parameter |
Type |
Description |
---|---|---|
options |
{ reader: UrlReaderService; integrations: ScmIntegrations; baseUrl?: string; fetchUrl?: string; outputPath: string; token?: string; } |
Promise<void>