For managing bb-editor extension
npm install bb-relayget-mode`ts
type Response = {
type: "mode";
mode: "light" | "dark";
}
`
`get-node`
Returns the list of directory and/or files in the specified folder. Empty string will point to the current workspace
`ts
type NodeResponse = {
type: "node";
root: string;
node: {
name: string;
fullPath: string;
isDirectory: boolean;
ext: string;
size: number;
createdAt: Date;
modifiedAt: Date;
isDiff?: boolean;
wordCount?: number;
childrenCount?: number;
summary?: string;
}[];
}
`
Info
Folders and files that starts with underscore are hidden automatically from the UI. If you want to create files that shouldn't appear in the explorer. For example: _data`