@heat/step-functions-local
v0.0.6
Published
**A wrapper around Amazon's StepFunctions Local to start and stop it from Node.js.**
Downloads
4
Readme
@heat/step-functions-local
A wrapper around Amazon's StepFunctions Local to start and stop it from Node.js.
This module wraps Amazon's
StepFunctions Local.
It just exposes one method called spawn()
which does not much more than calling
child_process.spawn()
and returning it's result.
const stepFunctionsLocalProcess = dynamoDbLocal.spawn();
// ...
stepFunctionsLocalProcess.kill();
A property the options object could have is port. It specifies the port number that the process will run on. In absence of the port property, 8083 is used as the port number.
const port = 8083;
const stepFunctionsLocalProcess = stepFunctionsLocal.spawn(port);
// ...
stepFunctionsLocalProcess.kill();