@container-stack/ssh-keygen-module

0.0.9-20 • Public • Published

hemera-plugin

Your plugin description

Prerequisites

Install and run NATS Server

Example

'use strict'

const Hemera = require('nats-hemera')
const plugin = require('hemera-plugin')
const nats = require('nats').connect()

const hemera = new Hemera(nats, {
  logLevel: 'info'
})

hemera.use(plugin)

hemera.ready(() => {
  hemera.act({
    topic: 'counter',
    cmd: 'add',
    a: 1,
    b: 2
  }, function (err, resp) {
    this.log.info(resp, 'Result')
  })
})

Test

npm run test

Code coverage

npm run coverage

Linting

npm run lint

Readme

Keywords

none

Package Sidebar

Install

npm i @container-stack/ssh-keygen-module

Weekly Downloads

2

Version

0.0.9-20

License

MIT

Unpacked Size

143 kB

Total Files

42

Last publish

Collaborators

  • container-stack