
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
This is a simple utility to log stuff to console without having to manually color it.
Aren't there many log libraries already?
Sure! But I wasn't satisfied by any of them, since they either had too much or too little stuff, so I always ended up copying and pasting the same files over all my projects, untill I finally decided I wanted to be able to yarn add coloredlog, and here we are xD
Just watch and repeat :P
import {log, info, error, warn} from 'coloredlog';
log('This will be output to console.log with a blue color');
info('This will be output to console.info with a cyan color');
error('This will be output to console.error with a red color');
warn('This will be output to console.warn with a yellow color');
If you set NODE_ENV environment variable to either test or silent, this module will shut it's mouth up. Useful for when you're running automated tests and don't want stuff getting in your way.
Com'on, you already know how to do this! Just PR me, I'll be happy to reveal and merge :D
FAQs
Simple package to log properly colored messages to proper output streams
We found that coloredlog 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
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.