Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
get.js22 linesDownload Raw Back to commands
1const Npm = require('../npm.js')
2const BaseCommand = require('../base-cmd.js')
3
4class Get extends BaseCommand {
5  static description = 'Get a value from the npm configuration'
6  static name = 'get'
7  static usage = ['[<key> ...] (See `npm config`)']
8  static params = ['long']
9  static ignoreImplicitWorkspace = false
10
11  static async completion (opts) {
12    const Config = Npm.cmd('config')
13    return Config.completion(opts)
14  }
15
16  async exec (args) {
17    return this.npm.exec('config', ['get'].concat(args))
18  }
19}
20
21module.exports = Get
22 
codekingpro/portable-devtools · Team Ai