The me api module exposes information specific to the current extension.

Usage

import { me } from '@replit/extensions';

Methods

me.filePath

Returns the path to the current file the extension is opened with, if it is a File Handler.

filePath(): Promise<string>