Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
config-live
Advanced tools
Config-live takes away the pain of reloading your NodeJS applications when configurations change. It uses a simple implementation of external caching and pub/sub for updates.
Right now config-live uses Redis for it's caching of config key/values and pub/sub features. Bringing your own caching and pub/sub is in the works and will be implemented as addons.
Props to Stack Overflow for their NFig package that has inspired this!
Important things to note:
npm i -S config-live
Using the config module.
const config = require('config'); // if you are using config
const ConfigLive = require('config-live');
const configLive = new ConfigLive('localhost', 6379);
// config is an object
configLive.start(config);
configLive.on('error', err => {
// DO SOMETHING. IT'S ON FIRE.
});
configLive.on('started', cfg => {
// since the config module is global, this is useful for a fully merged update
config.util.extendDeep(config, cfg);
});
// you can listen to the full updated config
configLive.on('updated', cfg => {
// do something here?
});
// or you can listen to a specific simple key being updated
configLive.on('mykey-updated', value => {
// can do something with new value
});
// or you can listen to a specific nested key being updated
configLive.on('mykey.mysecondkey-updated', value => {
// can do something with new value
});
// single key set
configLive.set('mykey', 'myvalue');
// nested object key set
configLive.set('mykey.mysecondkey', 'myvalue');
DEBUG=config-live* node myapp.js
More documentation coming soon!
FAQs
Live updating and management of config across your stack in NodeJS.
The npm package config-live receives a total of 0 weekly downloads. As such, config-live popularity was classified as not popular.
We found that config-live demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.