
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.