0.0.11 • Published 7 years ago

octopus-start-tasks v0.0.11

Weekly downloads
6
License
ISC
Repository
github
Last release
7 years ago

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