Skip to main content

getAllFilesAsMarkDown

codebolt.codeutils.getAllFilesAsMarkDown(): Promise<string>
Retrieves all files as Markdown.

Returns:

 Promise<string>
A promise that resolves with the Markdown content of all files.

Example


////test.js

function foo(d) {
d += 3;
return d+999
}
function bar(d) {
return d*100
}


///index.js

const getAllFilesAsMarkDown = await codebolt.codeutils.getAllFilesAsMarkDown();

markdown

Explaination

The codebolt.codeutils.getAllFilesAsMarkDown() function is used the Retrieves all files as Markdown. This Function returns the File as markdown, which we can store in a variable and use.