octopus-start-tasks
v0.0.11
Published
generic tasks for start runner
Downloads
25
Readme
octopus-start-tasks
Miscellaneous tasks for Start
.
install
npm install --save-dev octopus-start-tasks
API
props(obj)
Start
task that maps provided object values, which are of input => Promise
.
Say given input is String 'what', then:
props({one: input => 'say ' + what})
will return {one: 'say what'}
.
log(strOrFn)
Start
task that logs provided String or function input => String
via Start
reporter.
readJson(fileName)
Start
task that reads json file and returns a json object.
exec(cmd)
Start
task that executed a command and returns {stdout, stderr}.