@seneca/batch-monitor
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

@seneca/batch-monitor

Seneca BatchMonitor is a plugin for Seneca

Live configuration plugin for the Seneca framework.

Unlike static configuration, this plugin lets you store keyed configuration in your deployed persistent storage so that you can change it on the live system. This is useful for things like currency exchange rates, feature flags, A/B testing etc.

npm version build Coverage Status Known Vulnerabilities DeepScan grade Maintainability

Voxgig This open source module is sponsored and supported by Voxgig.

Install

$ npm install @seneca/BatchMonitor

Quick Example

seneca.use('BatchMonitor', {})

const initRes = await seneca.post('sys:batch-monitor,init:val,key:a,val:1')
// === { ok: true, key: 'a', val: 1, entry: { key: 'a', val: 1 } }

const getRes = await seneca.post('sys:batch-monitor,get:val,key:a')
// === { ok: true, key: 'a', val: 1, entry: { key: 'a', val: 1 } }

const setRes = await seneca.post('sys:batch-monitor,set:val,key:a,val:2')
// === { ok: true, key: 'a', val: 1, entry: { key: 'a', val: 2 } }

More Examples

Review the unit tests for more examples.

Options

  • debug : boolean
  • kind : object
  • init$ : boolean

Action Patterns

Action Descriptions

Motivation

Support

API

Contributing

Background

Readme

Keywords

Package Sidebar

Install

npm i @seneca/batch-monitor

Weekly Downloads

0

Version

0.0.7

License

MIT

Unpacked Size

43.3 kB

Total Files

25

Last publish

Collaborators

  • lmscunha
  • alex01
  • lilsweetcaligula
  • stokesriona
  • rjrodger