New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

experimentation-mesg-js

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

experimentation-mesg-js

## Services

  • 1.0.0-beta6
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

MESG.js

Services

Let's take this really simple service example

name: example
events:
  eventX:
    data: {}
tasks:
  start:
    inputs:
      isValid:
        type: Boolean
    outputs:
      valid:
        data: {}
      error:
        data: {}
Listen for tasks
const MESG = require('mesg/service')

const start = ({ isValid }, { valid, error }) => isValid
  ? valid({})
  : error({})

MESG.listenTask({ start })
Emit event
const MESG = require('mesg/service')

MESG.emitEvent("eventX", {
  foo: "bar"
}).then(...)

FAQs

Package last updated on 06 Jun 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc