Helloworld.sayHello()

Log a hello message with a generated secret code and other information

This example machine is part of machinepack-boilerplate, used to introduce everyone to machines.

Usage

Hover over inputs/exits for more info.

var Helloworld = require('machinepack-helloworld');


// Log a hello message with a generated secret code and other information

Helloworld.sayHello({

name: 'John',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

name required

The name of the person that will be sent the hello message.

'John'

Exits

error

An unexpected error occurred.

success

OK.

{ numLettersInName: 4,
  secretCode: 'e9ec627220bc9e8ca66f916b7fba92f3' }