Socket
Socket
Sign inDemoInstall

seneca-promisify

Package Overview
Dependencies
66
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    seneca-promisify

Seneca plugin for user and promisify permissions.


Version published
Weekly downloads
9.6K
decreased by-0.67%
Maintainers
1
Install size
3.68 MB
Created
Weekly downloads
 

Readme

Source

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

VoxgigThis 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')



FAQs

Last updated on 20 Nov 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc