
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
colorlogger
Advanced tools
colored stdout

npm install colorlogger
npm test
var path = require('path');
var colorlogger = require('../index.js');
colorlogger.colored('black', true).colored('white', 'b').log('this is black string with white bgcolor');
colorlogger.colored('red', true).log('this is red string');
colorlogger.colored('green', true).log('this is green string');
colorlogger.colored('yellow', true).log('this is yellow string');
colorlogger.colored('blue', true).log('this is blue string');
colorlogger.colored('pink', true).log('this is pink string');
colorlogger.colored('cyan', true).log('this is cyan string');
colorlogger.colored('white', true).log('this is white string');
colorlogger.colored('red');
colorlogger.colored('white', 'b');
colorlogger.log('this is red string with white background');
colorlogger.default();
colorlogger.log('this is your system\'s default settings');
colorlogger.colored('green', true).log('u can also invoke with method chain');
colorlogger.default();
colorlogger
.highlight().underline()
.colored('cyan', 'f', true)
.log('this string is in cyan highlight, underline, and style overrides the former\' setting')
.default();
colorlogger
.log('u', 'can', 'also', 'write', 'like', 'console.log:')
.colored('green').highlight()
.log('colorlogger.log("first", "second", "third", ...)');
you can also save the colorful log to disk, and load it to terminal in colored next time
in Promise mode:
colorlogger
.highlight(false)
.log('disable highlight, you can also save current/all output colored log to disk, and load it with colored');
colorlogger
.save('.log', { append: true, record: 'all' })
.then(function () {
console.log('all log saved to .log');
})
.catch(function (err) {
console.error(err.message);
})
.then(function () {
return colorlogger.load('.log');
})
.then(function (log) {
console.log(log);
});
FAQs
make terminal log colorful and save it to disk
We found that colorlogger 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.