Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

ape-tasking

4.0.12 • Public • Published

ape-tasking

Build Status npm Version JS Standard

ape framework module for tasks

Usage

Run Tasks

.runTasks(taskName, tasks, exitWhenDone)

#!/usr/bin/env node
 
'use strict'
 
const apeTasking = require('ape-tasking')
 
// Run tasks
apeTasking.runTasks('myCustomTask', [
  // Run callback base task
  (callback) => {
    /* ... */
    callback(null) // Pass error if failed.
  },
  // Run promise base task
  () => new Promise((resolve, reject) => {
    /* ... */
    resolve()
  })
], true)
 

License

This software is released under the MIT License.

Links

Keywords

install

npm i ape-tasking

Downloadsweekly downloads

274

version

4.0.12

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability