PHP WebShell

Текущая директория: /usr/lib/node_modules/npm/lib/commands

Просмотр файла: root.js

const { output } = require('proc-log')
const BaseCommand = require('../base-cmd.js')

class Root extends BaseCommand {
  static description = 'Display npm root'
  static name = 'root'
  static params = ['global']

  async exec () {
    output.standard(this.npm.dir)
  }
}

module.exports = Root

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


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