![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Load and monitor a configuration file.
npm install dconf
Suppose the following configuration file.
{
"widget": {
"debug": "on",
"window": {
"height": 500,
"name": "main_window",
"title": "Sample Konfabulator Widget",
"width": 500
}
}
}
To load it, one would do:
var dconf = require('dconf');
var config = dconf.loadSync('./config.json');
config.on('error', function(err) {
console.log(err);
});
config.on('update', function() {
console.log(util.inspect(config));
console.log(config.get('widget.debug'));
console.log(config.get('widget.window.title'));
console.log(config.get('widget.window.height'));
});
Asynchronously load a configuration file.
The callback will be called with two arguments (err, config). On error, config will be null and err will contain an error object.
Returns a Config
instance (see bellow).
Asynchronously load a configuration file.
Returns a Config
instance (see bellow).
The Config
class isn't intended to be instantiated directly by clients. Use
dconf.load
or dconf.loadSync
to obtain a new instance.
foo.bar.biz
Return a string representing the currently loaded configuration.
Stop monitoring the underlying config file and remove all listeners.
Emitted when the configuration values are updated, i.e. when the configuration file is successfully reloaded.
Emitted when an error occurs while watching/reading/parsing the config file.
This code is free to use under the terms of the MIT license.
FAQs
Configuration loader and monitor.
The npm package dconf receives a total of 0 weekly downloads. As such, dconf popularity was classified as not popular.
We found that dconf 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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.