PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/ox/trusted-setups/internal

Просмотр файла: paths.ts

import { dirname, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'

/** @internal */
export function path(name: string) {
  const __filename = fileURLToPath(
    // import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'
    // biome-ignore lint/suspicious/noTsIgnore: _
    // @ts-ignore
    import.meta.url,
  )
  const __dirname = dirname(__filename)
  return resolve(__dirname, `./setups/${name}.json`)
}

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


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