Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
clix-logger
Advanced tools
Another console log wrapper with colored support and icons
npm i -g clix-logger
var options = {
// Will print the messages using chalk colors. default is false
coloredOutput: false,
// Will suppress the output of `subtle` and `log` methods
// all of the others will still be printed
quiet: false // default is false,
};
var logger = require('clix-logger')(options);
logger.log('some', 'message', 'here');
ok(arg1[, arg2, ...argn] )
subtle(arg1[, arg2, ...argn] )
log(arg1[, arg2, ...argn] )
success(arg1[, arg2, ...argn] )
error(arg1[, arg2, ...argn] )
print(arg1[, arg2, ...argn] )
NOTES:
console.log
to print the messages, except the error
one, which uses console.error
.subtle
and log
are suppressed when options.quiet
is specified.print
does not have an icon at the beginning of the linethe following code
var logger = require('clix-logger')({ coloredOutput: true });
# will use yellow color
logger.ok( 'a', 'simple', 'message', 'of', 'type', 'ok', {
coloredOutput: false
}, [ 1, 2, 3 ] );
# will use white color
logger.subtle( 'a', 'simple', 'message', 'of', 'type', 'subtle', {
coloredOutput: false
}, [ 1, 2, 3 ] );
# will use white color
logger.log( 'a', 'simple', 'message', 'of', 'type', 'log', {
coloredOutput: false
}, [ 1, 2, 3 ] );
# will use red color
logger.error( 'a', 'simple', 'message', 'of', 'type', 'error', {
coloredOutput: false
}, [ 1, 2, 3 ] );
# will use gray color
logger.print( 'a', 'simple', 'message', 'of', 'type', 'print', {
coloredOutput: false
}, [ 1, 2, 3 ] );
# will use green color
logger.success( 'a', 'simple', 'message', 'of', 'type', 'success', {
coloredOutput: false
}, [ 1, 2, 3 ] );
Will produce this output:
v2.0.0
FAQs
Another console log wrapper with colored support and icons
The npm package clix-logger receives a total of 1,442 weekly downloads. As such, clix-logger popularity was classified as popular.
We found that clix-logger 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.