Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@contrast/config
Advanced tools
@contrast/config
Note: This package needs help.
- Needlessly dependent on
commander
,lodash
, andjson-stable-stringify
- Can be simplified
- Could benefit from schema-based approach for defaults
This is legacy code ported from node-agent
repo.
To discover and log configuration data, try
node -e "console.log(new (require('.').Config)())"
An agent should use a single instance of a config. On instantiation, the config will detect both yaml file and environment variable sources and build out full config object. The object will have defaults set for values not having been set by file or env vars.
const { AgentConfig } = require('@contrast/config');
const config = new AgentConfig();
// do stuff with config
if (config.protect.enable) {
}
agent.stack_trace_filters
This allows agent stackframes to be filtered via configuration
Default: agent-,@contrast,node-agent
FAQs
An API for discovering Contrast agent configuration data
The npm package @contrast/config receives a total of 15,530 weekly downloads. As such, @contrast/config popularity was classified as popular.
We found that @contrast/config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.