@container-stack/hemera-brigade-gw-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.0.9-20 • Public • Published

hemera-counter

Your plugin description

Prerequisites

Install and run NATS Server

Example

'use strict'

const Hemera = require('nats-hemera')
const plugin = require('hemera-counter')
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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.9-200latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.9-200
0.0.9-190
0.0.9-180
0.0.9-170
0.0.9-160
0.0.9-150
0.0.9-140
0.0.9-130
0.0.9-120
0.0.9-110
0.0.9-100
0.0.9-90
0.0.9-80
0.0.9-61
0.0.9-50
0.0.9-40
0.0.250
0.0.240
0.0.230
0.0.210
0.0.200
0.0.180
0.0.170
0.0.140
0.0.130
0.0.120
0.0.9-10
0.0.9-00
0.0.80
0.0.71
0.0.60
0.0.5-170
0.0.5-160
0.0.5-150
0.0.5-140
0.0.5-131
0.0.5-120
0.0.5-110
0.0.5-100
0.0.5-50
0.0.5-40
0.0.5-30
0.0.5-20
0.0.5-11
0.0.5-00

Package Sidebar

Install

npm i @container-stack/hemera-brigade-gw-plugin

Weekly Downloads

4

Version

0.0.9-20

License

MIT

Unpacked Size

21.4 kB

Total Files

6

Last publish

Collaborators

  • container-stack