
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.
engine-asserts
Advanced tools
Simple nodejs module that allow you to verify if enviroment version of node/mongodb matches version specified in your package.json/.nvmrc
As expected, you can install via npm:
$ npm install engine-asserts
insert following code in your package.json .nvmrc
//package.json
...
{
"engines": {
"node": "1.0.0",
"mongodb": "3.2.1"
}
}
...
// or .nvmrc
5.5.0
You can then use in your Node apps:
//your app.js
/**
*
* @param {Object} [cfg]
* @param {Boolean} [cfg.consoleDisabled] disable console output (default: false)
* @param {String} [cfg.rootPath] path to package.jsn & .nvmrc directory (default: process.cwd())
*/
var engineAsserts = require('engine-asserts')(cfg);
/**
*
* @param {Boolean} justWarn true - displays error output in console
* false - displays error output in console and * @returns {Boolean}
*/
engineAsserts.checkNodeVersion(justWarn);
/**
*
* @param {Boolean} justWarn true - displays error output in console ,
* false - displays error output in console and exits process
* @returns {Q.Promise}
*/
engineAsserts.checkMongoVersion(justWarn);
$ npm run test
FAQs
Verifier for nodejs and mongdb versions
The npm package engine-asserts receives a total of 0 weekly downloads. As such, engine-asserts popularity was classified as not popular.
We found that engine-asserts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
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.