
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Put colors in your debugging sessions. By Fabio Rotondo.
yarn add colorsole
or
npm install --save colorsole
var Colorsole = require ( 'colorsole' );
// once instantiated, colorsole can be used as a console replacement
console = new Colorsole ();
// There are some options and attributes you can call while creating a Colorsole.
// now just use it with debug, info, warn, error methods
// NOTE: for better results, pass at least two arguments to a colorsole debug method
// the first argument will be used as a line title
console.debug ( "DEBUG", "This is an info message" );
console.info ( "INFO", "This is an info message" );
console.warn ( "Warning", "This is an info message" );
console.error ( "ERROR Message", "This is an info message" );
Parameters during Colorsole creations are:
- level: Level of output of the Colorsole.
These are the available values:
- Colorsole.LOG_LEVEL_DEBUG : the less important message
- Colorsole.LOG_LEVEL_INFO : an informative message [default]
- Colorsole.LOG_LEVEL_WARN : a warning
- Colorsole.LOG_LEVEL_ERROR : an error message
- theme: Color scheme to be used. At the moment, only `dark` is available.
- stack: Flag T/F. If set to true, the text line shows filename and line number where the message has been written.
- date: Flag T/F. If set to true, the text lines shows date (YYYYMMDD format) and time (HHMMSS format)
You can change the level at runtime using this syntax:
// After this line, only error messages will be shown to the console
console.level = Colorsole.LOG_LEVEL_ERROR;
Also stack and date can be toggled at runtime, in this way:
// Enable show stack
console.show_stack = true;
// disable date
console.show_date = false;
0.1.0: First release
FAQs
Put colors in your debugging messages
We found that colorsole 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

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.