0.0.29 • Published 7 years ago

@ide-stack/hemera-counter v0.0.29

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

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
0.0.29

7 years ago

0.0.26

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.19

7 years ago

0.0.14

7 years ago

0.0.11

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.1

7 years ago