nodejs/deps/npm/lib/commands/prefix.js
npm CLI robot 25b22e4754
deps: upgrade npm to 11.0.0
PR-URL: https://github.com/nodejs/node/pull/56274
Reviewed-By: Jordan Harband <ljharb@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2025-01-10 16:20:27 +00:00

15 lines
309 B
JavaScript

const { output } = require('proc-log')
const BaseCommand = require('../base-cmd.js')
class Prefix extends BaseCommand {
static description = 'Display prefix'
static name = 'prefix'
static params = ['global']
async exec () {
return output.standard(this.npm.prefix)
}
}
module.exports = Prefix