/**
 * 获取 Node.js path 模块
 * 动态导入 path 模块，避免在浏览器环境中引起错误
 * @returns Node.js path 模块
 * @example
 * ```ts
 * const path = getPath();
 * const fullPath = path.resolve(__dirname, './file.txt');
 * const basename = path.basename('/path/to/file.txt'); // 'file.txt'
 * ```
 */
function getPath() {
  // eslint-disable-next-line @typescript-eslint/no-require-imports
  return require('path');
}

export { getPath };
