
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.
characteristic
Advanced tools
Feature flag implementation in Node.
Inspired by Etsy Feature API
var Feature = require("characteristic")();
Feature.isEnabled("my_feature");
It returns true
if my_feature
is enabled.
According to web application, use binding to apply feature flag on request object when request.user
or request.group
exists:
function(request, response, next) {
var enabled = Feature.isEnabled.bind(request)("my_feature");
// enabled is true if my_feature is enabled for current user
}
It loads default configuration file from <project-root>/config/<node-env>.yml
:
---
features:
zero-downtime: on
flying-phone: off
super-power:
users: [hulk, thor, superman]
hero:
groups: [shield, avengers]
Uses customized configuration file path:
var Feature = require("characteristic")("./foo/custom-config.yml");
Reload configuration:
Feature.reload();
// reload with new config path
Feature.reload("./bar/custom-config.yml");
FAQs
feature flag util
The npm package characteristic receives a total of 3 weekly downloads. As such, characteristic popularity was classified as not popular.
We found that characteristic 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.