Skip to main content

ASSETS_PATH

const ASSETS_PATH: string;

Runtime path to the plugin's assets folder. Use this to build absolute paths to files bundled with your plugin.

Example

import * as path from "path";
import { ASSETS_PATH } from "@logitech/plugin-sdk";

const filePath = path.join(ASSETS_PATH, "files", "sample-text.txt");