seneca-promisify

3.7.1 • Public • Published

seneca-promisify

Seneca plugin providing a Promise-based API.

This is an interim plugin to provide a Promise-based API to Seneca.

NOTE: no longer provides a Promises API for entities, as seneca-entity 18.x+ provides this directly.

Npm Travis Coveralls

Voxgig This open source module is sponsored and supported by Voxgig.

Quick Example

const Seneca = require('seneca')

var seneca = Seneca()

// Callback version: seneca.add(msg, action)
// Define a message patter and action
seneca.message('a:1', async function(msg) {
  return {foo:1} // reply by just returning
})

// Callback version: seneca.act(msg, callback)
// Send a synchronous message action and wait for a reply
var reply = await seneca.post('a:1')



Readme

Keywords

none

Package Sidebar

Install

npm i seneca-promisify

Weekly Downloads

3,445

Version

3.7.1

License

MIT

Unpacked Size

8.36 kB

Total Files

5

Last publish

Collaborators

  • rjrodger