1.0.2 • Published 5 years ago

pon-task-task v1.0.2

Weekly downloads
440
License
Apache-2.0
Repository
github
Last release
5 years ago

pon-task-task

Build Status npm Version JS Standard

Pon task to call another task

Installation

$ npm install pon-task-task --save

Usage

'use strict'

const pon = require('pon')
const task = require('pon-task-task')

;(async () => {
  const run = pon({
    doSomething: () => { /* ... */},
    callAnother: [task('doSomething')]
  })

  run('callAnother')
}).catch((err) => console.error(err))

Signatures

define(names, options) -> function

Define task

ParamtypeDescription
namesstring|string[]Name of pon tasks to call
optionsObjectOptional settings

License

This software is released under the Apache-2.0 License.

Links

1.0.2

5 years ago

1.0.1

7 years ago