🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

larvitamsettings

Package Overview
Dependencies
Maintainers
6
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

larvitamsettings

Share settings between microservices. Database driven, shared using RabbitMQ with larvitamintercom

latest
Source
npmnpm
Version
0.8.138
Version published
Maintainers
6
Created
Source

Build Status

larvitamsettings

Get and set settings from database. It is as simple as that!

Installation

npm i larvitamsettings

Usage

Setting name is limited to 100 characters ASCII Setting value is limited to ~65MB UTF-8

const Settings = require('larvitamsettings');

const settings = new Settings({
	db: require('larvitdb'), // See https://github.com/larvit/larvitdb for configuration details

	// OPTIONAL
	log: new (new (require('larvitutils')())).Log() // Compatible with winston logging instance
});

await settings.set('setting name', 'setting value - woho');

const settingValue = await settings.get('setting_name');

console.log(settingValue); // "setting value - woho"

Keywords

distributed

FAQs

Package last updated on 11 Nov 2025

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