🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@seneca/batch-monitor

Package Overview
Dependencies
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seneca/batch-monitor

Live batch-monitoruration plugin for the Seneca framework.

latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
5
Created
Source

@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

VoxgigThis 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

Keywords

seneca

FAQs

Package last updated on 10 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts