pon-task-task

1.0.2 • Public • Published

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

Param type Description
names string|string[] Name of pon tasks to call
options Object Optional settings

License

This software is released under the Apache-2.0 License.

Links

Dependencies (0)

    Dev Dependencies (14)

    Package Sidebar

    Install

    npm i pon-task-task

    Weekly Downloads

    1

    Version

    1.0.2

    License

    Apache-2.0

    Unpacked Size

    26.8 kB

    Total Files

    29

    Last publish

    Collaborators

    • realglobe