
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Configuration manager for the Roc ecosystem.
Important to note that this project will look for two environment variables; ROC_CONFIG
and ROC_CONFIG_OBJECT
.
If either of them are found they will be used instead of what has been set during runtime. Please read the documentation to understand how this works in more detail.
If there is a conflict where both an environment variable is set and something overriden manually, there will a a clear warning given to the user.
Once imported to your project the configuration and all its internal states will persist throughout the process lifetime.
To generate documentation please run npm run docs
.
For roc-config to understand a roc.config.js
file in a project this needs to export an object with a config
key.
Use configuration:
import { getFinalConfig } from 'roc-config';
const config = getFinalConfig();
Extend configuration with custom configuration and use it:
import { getFinalConfig } from 'roc-config';
const customConfig = {
property: 'value'
};
const config = getFinalConfig(customConfig);
Perform multiple modifications and use:
import { getFinalConfig, appendConfig } from 'roc-config';
// deep merges parameter to current appended configuration state
appendConfig({
value: 'value'
});
appendConfig({
value2: 'value2'
});
// config will hold { "value": "value", "value2": "value2" }
const config = getFinalConfig();
FAQs
Configuration manager for the Roc ecosystem
The npm package roc-config receives a total of 7 weekly downloads. As such, roc-config popularity was classified as not popular.
We found that roc-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.