NPM.unpublish()

Unpublish a package from the public NPM registry.

Usage

Hover over inputs/exits for more info.

var NPM = require('machinepack-npm');


// Unpublish a package from the public NPM registry.

NPM.unpublish({

packageName: 'cheerio',

version: '1.0.0',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

packageName required

The name of the NPM package to unpublish.

'cheerio'
version

The version to unpublish (if omitted, all versions will be unpublished)

'1.0.0'

Exits

error

An unexpected error occurred.

success

OK.