Documentation Index
Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
Use this file to discover all available pages before exploring further.
static searchFiveStars(filePath: string): Promise<APIResponse<number[]>>;
Parameters
| Parameter | Type | Description |
|---|
filePath | string | NOTE/DOC file path |
Returns
Example
import { PluginFileAPI } from 'sn-plugin-lib';
/**
* Example: search a file for five-star pages.
*/
export async function exampleSearchFiveStars() {
const filePath = '/storage/emulated/0/Note/demo.note';
const res = await PluginFileAPI.searchFiveStars(filePath);
if (!res.success) {
throw new Error(res.error?.message ?? 'searchFiveStars call failed');
}
return res.result;
}