
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
better-console-s
Advanced tools
This is a module whose task is to improve the appearance of console logs.
<<<<<<< HEAD
Use NPM
npm install better-console-s
const betterConsole = require("better-console-s");
const output = betterConsole("test 123", {
borderStyle: "single",
});
console.log(output);
You can set textColor (text color), borderColor (border color), backgroundColor (background color), color (general color).
When you enter a color, you can enter either the color hex or the color name.
A list of all colors can be found in the Styles tab.
const betterConsole = require("better-console-s");
const output = betterConsole("test 123", {
borderStyle: "single",
color: "red",
});
console.log(output);
or
const betterConsole = require("better-console-s");
const output = betterConsole("test 123", {
borderStyle: "single",
textColor: "red",
borderColor: "blue",
});
console.log(output);
You can set the border via borderStyle (instead of the frame name you can enter null, then the border will not be displayed).
A list of all frames can be found in the Styles tab.
const betterConsole = require("better-console-s");
const output = betterConsole("test 123", {
borderStyle: "single",
});
console.log(output);
You can set the spacing using: margin, padding or marginTop, marginBottom, marginLeft, marginRight, paddingTop, paddingBottom, paddingLeft, paddingRight.
const betterConsole = require("better-console-s");
const output = betterConsole("test 123", {
borderStyle: "single",
margin: 2,
padding: 1,
});
console.log(output);
or
const betterConsole = require("better-console-s");
const output = betterConsole("test 123", {
borderStyle: "single",
marginTop: 2,
paddingBottom: 1,
paddingTop: 3,
paddingLeft: 1,
...
});
console.log(output);
Configuration Options:
Borders:
Colors:
Use NPM
npm install better-console-s
const betterConsole = require("better-console-s");
const output = betterConsole("test 123", {
borderStyle: "single",
});
console.log(output);
You can set textColor (text color), borderColor (border color), backgroundColor (background color), color (general color).
When you enter a color, you can enter either the color hex or the color name.
A list of all colors can be found in the Styles tab.
const betterConsole = require("better-console-s");
const output = betterConsole("test 123", {
borderStyle: "single",
color: "red",
});
console.log(output);
or
const betterConsole = require("better-console-s");
const output = betterConsole("test 123", {
borderStyle: "single",
textColor: "red",
borderColor: "blue",
});
console.log(output);
You can set the border via borderStyle (instead of the frame name you can enter null, then the border will not be displayed).
A list of all frames can be found in the Styles tab.
const betterConsole = require("better-console-s");
const output = betterConsole("test 123", {
borderStyle: "single",
});
console.log(output);
You can set the spacing using: margin, padding or marginTop, marginBottom, marginLeft, marginRight, paddingTop, paddingBottom, paddingLeft, paddingRight.
const betterConsole = require("better-console-s");
const output = betterConsole("test 123", {
borderStyle: "single",
margin: 2,
padding: 1,
});
console.log(output);
or
const betterConsole = require("better-console-s");
const output = betterConsole("test 123", {
borderStyle: "single",
marginTop: 2,
paddingBottom: 1,
paddingTop: 3,
paddingLeft: 1,
...
});
console.log(output);
Configuration Options:
Borders:
Colors:
and all hex colors.
db3cee4ab9ea75f437e482efea440652d6f43b7a
FAQs
This is a module whose task is to improve the appearance of console logs.
We found that better-console-s demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.