palmettoflow-client

1.0.0 • Public • Published

Palmetto Flow Client Module

This module abstracts the timeout and the event emitter pattern and provides a callback pattern that can be used as a route wrapper or can be promisified and used in a promise chaining pattern.

usage

var pfclient = require('palmettoflow-client')
var handler = pfclient({ timeout: 2000}, ee)

handler(
  newEvent('subject', 'verb',
    { data: 'here' },
    { actor: 'here'}
  ), function (err, result) {
    // handle result
  }
)

test

npm test

Support

create an issue

Readme

Keywords

none

Package Sidebar

Install

npm i palmettoflow-client

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • twilson63