UNPKG

@webda/core

Version:

Expose API with Lambda

14 lines (13 loc) 285 B
/** * Get commonjs info __filename and __dirname * @param urlInfo * @returns * @example * ```ts * const { __filename, __dirname } = getCommonJS(import.meta.url); * ``` */ export declare function getCommonJS(urlInfo: string): { __dirname: string; __filename: string; };