
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.
Browser console logging with URL based constraints
log-safe is a small utility that helps keep console logging out of your production environment
CommonJS/Browserify
log-safe must be initialized with an include
RegEx, exlcude
RegEx, or both
Example:
var logger = require( 'log-safe' )({
include: /.*\?debug=true/,
exclude: /www\.productiondomain\.com.*/
});
If the current URL matches this RegEx, your message will be logged.
If the current URL does not match this RegEx, your message will be logged.
Once you have initialized log-safe, use it just like the native console object (but without exposing end users to your logging!).
logger.log( 'this is a log' );
logger.warn( 'this is a warn' );
logger.error( 'this is an error' );
FAQs
Keep console logging out of production
The npm package log-safe receives a total of 0 weekly downloads. As such, log-safe popularity was classified as not popular.
We found that log-safe 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.