
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Simple configuration utility for Beat dependency injection
This module provide a conf
object to be injected in beat instances.
Set your configurations normally in the native package.json (abbreviated here for simplicity)
{
...
"config": {
"serverPort": "3000",
"mongo": "mongodb://localhost:27017/production_db",
"publicPath": "/public"
}
}
Install this module with NPM:
npm install --save beat-conf
Declare it as a dependency of your Beat module and inject conf
object where you need it
var Beat = require('beat');
var server = module.exports = new Beat('server', [
'beat-conf',
'http'
]);
server.run(function(http, conf){
http.createServer().listen(conf.serverPort);
});
This utility is very simply crafted, but it's important to understand its behavior.
The config object in package.json
can contain several sub-objects whose key refers to current env
.
The default
one will be used, and will be overlapped by the configs according to current process.env.NODE_ENV
, if exists.
As in this example:
{
...
"config": {
"default": {
"serverPort": "3000",
"mongo": "mongodb://localhost:27017/production_db",
"publicPath": "/public"
},
"test": {
"mongo": "mongodb://localhost:27017/test_db"
}
}
}
mongo
property will normally be mongodb://localhost:27017/production_db
;
while with process.env.NODE_ENV
setted as 'test', it will be setted to mongodb://localhost:27017/test_db
.
The other configurations continue the same.
FAQs
Simple configuration utility for Beat dependency injection
The npm package beat-conf receives a total of 0 weekly downloads. As such, beat-conf popularity was classified as not popular.
We found that beat-conf 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.