
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.
@thesuhu/colorconsole
Advanced tools
Make console log more colorful. While developing, we often deal with console logs. This module provides four templates namely regular log, error log, HTTP log and SQL log.
npm install @thesuhu/colorconsole --save-dev
Below is an example regular and error log.
const { logConsole, errorConsole } = require('@thesuhu/colorconsole')
// regular log
logConsole('Hello world!')
// error log
errorConsole('A very cool error here')
Below is an example HTTP log.
const { httpLogConsole } = require('@thesuhu/colorconsole')
// log request for dev
app.use((req, res, next) => {
if (env == 'dev') httpLogConsole(req)
next()
})
Below is an example SQL log.
const { sqlLogConsole } = require('@thesuhu/colorconsole')
// when work with MySQL
let query = mysql.format(sql, param)
if (env == 'dev') {
sqlLogConsole(query)
}
// when work with Oracle
let query = queryBindToString(sql, param)
if (env == 'dev') {
sqlLogConsole(query)
}
FAQs
Make console log more colorful
We found that @thesuhu/colorconsole 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.