
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@logzio-node-toolbox/config
Advanced tools
config manager based on Joi schema with subscription capabilities
an efficient config manager based on Joi schema for better easy managing configurations
import { Config } from '@logzio-node-toolbox/config';
const schema = {}; // Joi schema or array of Joi schemas (in case or array will merge the schemas)
const defaults = {}; // defaults to override the schema defaults (use to pass defaults per region or environment)
const overrides = {}; // configs that could never be override even when try to set (usually environment variables)
const config = new Config({ schema, defaults, overrides });
use path to fetch nested value, if empty will fetch the all config
const value = config.get('path.to.value');
use path in key property to set nested values, if empty will mergeDeep from root
onError - callback for when validation error with the schema, if onError return true will continue with the merge config even if not valid
config.set({ value: {}, key = 'path.to.set', onError: (err) => {
console.log(err)
return true;
} })
onChange - callback to invoke when value changed if key is empty will watch all config
return unSubscribe method
const unSubscribe = config.subscribe({ key: 'path.to.value.to.watch', onChange: (value) => {
console.log("new value:", value);
}})
unSubscribe(); // stop watching value
FAQs
config manager based on Joi schema with subscription capabilities
The npm package @logzio-node-toolbox/config receives a total of 1,838 weekly downloads. As such, @logzio-node-toolbox/config popularity was classified as popular.
We found that @logzio-node-toolbox/config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.