Skip to main content

Output

Output as a built-in interactive object will output content in a specific UI style.

text

Output content as plain text.

Interface

function (content: string) => void;

Example

output.text("Hello World");

markdown

Output content as Markdown.

Interface

function (source: string) => void;

Example

output.markdown(`
# Hello World

1. First item
2. Second item
3. Third item

[Link Title](https://example.com)
`);

table

Output the content as a table.

Interface

function (data: (string | number | Object)[]) => void;

Example

output.table(["Sky", "Mike", "Tom"]);

output.table([
{ name: "Tony", age: 28, job: "teacher" },
{ name: "Nick", age: 18, type: "student" },
{ name: "Amber", age: 32, type: "director" },
]);

clear

Clear the output.

Interface

function () => void;

Example

output.clear();