Socket
Socket
Sign inDemoInstall

larvitamsettings

Package Overview
Dependencies
Maintainers
0
Versions
132
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


Version published
Maintainers
0
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

FAQs

Package last updated on 30 Sep 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc