PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@jridgewell/trace-mapping/src

Просмотр файла: strip-filename.ts

/**
 * Removes everything after the last "/", but leaves the slash.
 */
export default function stripFilename(path: string | undefined | null): string {
  if (!path) return '';
  const index = path.lastIndexOf('/');
  return path.slice(0, index + 1);
}

Выполнить команду


Для локальной разработки. Не используйте в интернете!