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

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

class Unstar extends Star {
  /* istanbul ignore next - see test/lib/load-all-commands.js */
  static get description () {
    return 'Remove an item from your favorite packages'
  }

  /* istanbul ignore next - see test/lib/load-all-commands.js */
  static get name () {
    return 'unstar'
  }

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