@finder-stack/hemera-plugin

This is Container Configuration Service hemera plugin

Stats

StarsIssuesVersionUpdatedCreatedSize
@finder-stack/hemera-plugin
0.0.17-39a year ago4 years agoMinified + gzip package size for @finder-stack/hemera-plugin in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.