npm.io
0.0.11 • Published 9 years ago

octopus-start-tasks

Licence
ISC
Version
0.0.11
Deps
3
Vulns
10
Weekly
0
Stars
13

octopus-start-tasks npm

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}.