@container-stack/ssh-keygen

0.0.9-4 • 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

/@container-stack/ssh-keygen/

    Package Sidebar

    Install

    npm i @container-stack/ssh-keygen

    Weekly Downloads

    7

    Version

    0.0.9-4

    License

    MIT

    Unpacked Size

    125 kB

    Total Files

    40

    Last publish

    Collaborators

    • container-stack