Welcome to mirror list, hosted at ThFree Co, Russian Federation.

unstar.js « commands « lib - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9a64c843178f35486929fba13d0f12b8ff025904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const Star = require('./star.js')

class Unstar extends Star {
  static description = 'Remove an item from your favorite packages'
  static name = 'unstar'
  static params = [
    'registry',
    'unicode',
    'otp',
  ]

  async exec (args) {
    this.npm.config.set('star.unstar', true)
    return super.exec(args)
  }
}
module.exports = Unstar