File: prefix.js

package info (click to toggle)
npm 9.2.0~ds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 318,988 kB
  • sloc: javascript: 167,820; sh: 194; makefile: 52; perl: 11
file content (14 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const BaseCommand = require('../base-command.js')

class Prefix extends BaseCommand {
  static description = 'Display prefix'
  static name = 'prefix'
  static params = ['global']
  static usage = ['[-g]']
  static ignoreImplicitWorkspace = true

  async exec (args) {
    return this.npm.output(this.npm.prefix)
  }
}
module.exports = Prefix