
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.
atlas-basic-logger
Advanced tools
A very simple debug logger.
npm install --save atlas-basic-logger
I just need a simple error-first Logger
which lets me avoid using console.log
(for testability), while making my business logic cleaner and more concise.
Both debug and concise mode can be used to do error-first logging. If an error is passed to the logger, it'll print it (or just the message
in concise mode), otherwise it'll attempt to print the second argument.
This will print the error to stderr, if it exists, otherwise it will print the full result to stdout, if it exists.
const Logger = require("atlas-basic-logger");
const isDebug = true;
const log = Logger(isDebug)
reddit.deleteAccount("atlassubbed", (err, res) => {
log(err, res)
})
// or, in fewer lines
reddit.deleteAccount("atlassubbed", log)
This will print the error's message
to stderr, if it exists, otherwise it will print the full result to stdout, if it exists.
const log = require("atlas-basic-logger")();
reddit.deleteAccount("atlassubbed", (err, res) => {
log(err, res)
})
// or, in fewer lines
reddit.deleteAccount("atlassubbed", log)
FAQs
A very simple debug logger.
The npm package atlas-basic-logger receives a total of 1 weekly downloads. As such, atlas-basic-logger popularity was classified as not popular.
We found that atlas-basic-logger 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.