
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
@comodinx/colors
Advanced tools
This is a simple proof of concept. An exercise.
We were inspired by and strongly recommend using colors
npm i @comodinx/colors
| color | bright |
|---|---|
| black | |
| red | brightRed |
| green | brightGreen |
| yellow | brightYellow |
| blue | brightBlue |
| magenta | brightMagenta |
| cyan | brightCyan |
| white | brightWhite |
| grey |
| color | bright |
|---|---|
| bgBlack | |
| bgRed | bgBrightRed |
| bgGreen | bgBrightGreen |
| bgYellow | bgBrightYellow |
| bgBlue | bgBrightBlue |
| bgMagenta | bgBrightMagenta |
| bgCyan | bgBrightCyan |
| bgWhite | bgBrightWhite |
| bgGrey |
| style |
|---|
| reset |
| bold |
| dim |
| italic |
| underline |
| inverse |
| hidden |
| strikethrough |
The super nifty way
require('@comodinx/colors');
console.log('hello'.green);
console.log('i like cake and pies'.underline.red);
console.log('inverse the color'.inverse);
or a slightly less nifty way which doesn't extend String.prototype
const colors = require('@comodinx/colors/safe');
console.log(colors.green('hello'));
console.log(colors.red(colors.underline('i like cake and pies')));
console.log(colors.inverse('inverse the color'));
String.prototypeCOLORS_ON_STRING_PROTO=0 node myapp.js
const name = 'Marak';
console.log(colors.green('Hello %s'), name);
// outputs -> 'Hello Marak'
const colors = require('@comodinx/colors');
colors.setAlias({
title: 'bold',
success: 'green',
error: 'red',
warn: 'yellow',
info: 'cyan'
});
console.log('🟢 Congratulations'.success);
console.log('🔴 ERROR'.error);
console.log('🟡 ¡¡¡WARNING!!!'.warn);
console.log('🔵 This is an information message'.info);
console.log('This is a title for success message'.title.success);
FAQs
@comodinx/colors is a Node.js string colors helpers.
We found that @comodinx/colors 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
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

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.