nodejs/deps/npm/lib/commands/undeprecate.js
npm CLI robot cadc4ed067
deps: upgrade npm to 11.1.0
PR-URL: https://github.com/nodejs/node/pull/56818
Reviewed-By: Jordan Harband <ljharb@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2025-02-02 15:09:59 +00:00

14 lines
302 B
JavaScript

const Deprecate = require('./deprecate.js')
class Undeprecate extends Deprecate {
static description = 'Undeprecate a version of a package'
static name = 'undeprecate'
static usage = ['<package-spec>']
async exec ([pkg]) {
return super.exec([pkg, ''])
}
}
module.exports = Undeprecate