LocalMachinepacks.getMachinesDir()

Get the path to this machinepack's `machines/` directory.

Usage

Hover over inputs/exits for more info.

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


// Get the path to this machinepack's `machines/` directory.

LocalMachinepacks.getMachinesDir({

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

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

dir required

'/Users/mikermcneil/machinepack-foobar'

Exits

error

An unexpected error occurred.

success

OK.

'/Users/mikermcneil/machinepack-foobar/machines'