LocalMachinepacks.initializeMachinepack()

Initilize or rename a local pack by modifying its package.json file.

Modifies the package's package.json file.

Usage

Hover over inputs/exits for more info.

var LocalMachinepacks = require('machinepack-localmachinepacks');


// Initilize or rename a local pack by modifying its package.json file.

LocalMachinepacks.initializeMachinepack({

dir: '/Users/mikermcneil/machinepack-foo/',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

dir required

The path to the machinepack (if path is not absolute, will be resolved from the current working directory)

'/Users/mikermcneil/machinepack-foo/'

Exits

error

An unexpected error occurred.

success

OK.