aphase

1.2.0 • Public • Published

aphase

Build Status Code Climate Code Coverage npm Version JS Standard

Phase runner

Installation

$ npm install aphase --save

Usage

'use strict'
 
const aphase = require('aphase')
 
function run (phaseName) {
  let phase = aphase(phaseName) // Define phase function
  // Run if phase name matches
  phase('foo:sayYeah!', () => Promise.resolve('yeah!'))
  phase('quz:sayYeah!', () => Promise.resolve('yeah!'))
}
 
run('foo:*,bar:*')
 

License

This software is released under the MIT License.

Links

Readme

Keywords

none

Package Sidebar

Install

npm i aphase

Weekly Downloads

4

Version

1.2.0

License

MIT

Last publish

Collaborators

  • okunishinishi