
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.
@tobes31415/console-logger
Advanced tools
Formats console logs while preserving stack trace info
A Javascript console log formatter that logs the correct line number. Also supports forking logs to other log reporters so that you can have the benefit of both
npm install --save @tobes31415/console-logger
import { createLogFor } from "@tobes31415/console-logger";
const logger = createLogFor("My Module Name");
console.log(...logger("This is a test", 123, "abc"));
// "[My Module Name] 0.5s This is a test", 123, "abc"
import { onLogEvent } from "@tobes31415-console-logger";
onLogEvent.subscribe(log => {
//log messages to a server or something
myServerLogger.log(log.message, ...);
})
import { customizeDefaultLogFormatter } from "@tobes31415-console-logger";
customizeDefaultLogFormatter({
format: {
uptime: ms => Math.round(ms / 1000) + "s",
},
style: {
uptime: "color:green"
}
});
import { createLogFor } from "@tobes31415-console-logger";
const logger = createLogFor("My Module Name");
logger.config({
logThreshold: "warn"
});
console.log(...logger("This does not get logged"));
console.warn(...logger.warn("This one does get logged"));
Big thank you to Macadamian Technologies for donating time towards this open source project :-)
FAQs
Formats console logs while preserving stack trace info
The npm package @tobes31415/console-logger receives a total of 100 weekly downloads. As such, @tobes31415/console-logger popularity was classified as not popular.
We found that @tobes31415/console-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.
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.