bot/node_modules/npm/lib/commands/unstar.js

18 lines
348 B
JavaScript
Raw Normal View History

2022-02-16 11:32:42 +01:00
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