
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
const log = require('xxd-log');
// Different log levels
// Accept same arguments as `console.log()`
const count = 5;
log.trace('count: %d', count);
log.debug('count:', count);
log.info(`count: ${count}`);
log.warn({count});
log.error(new Error(`count (${count}) is wrong.`));
log.fatal('Duang!');
// Use chalk directly
console.log(log.chalk.red('This is red.'));
// Change options of the default logger instance.
log.withLabel = false; // Do not display labels before messages.
log.withTimestamp = false; // Do not display current time before messages.
log.highlightStackTrace = false; // Do not highlight key positions in error stack trace.
log.timestampFormat = 'HH:mm:ss.SSS'; // Customize the time format.
log.withLabel = log.newLogger().options.withLabel; // reset an option.
// Use an individual instance with different options
const anotherLogger = log.newLogger({
withLabel: false,
withTimestamp: false,
highlightStackTrace: false,
})
You can change these options at any time in the process, and will take effect from next call of logging.
For further instruction of time format, please see moment.js documentation
Option | Type | Description |
---|---|---|
withTimestamp | boolean | Control if print message with timestamp before, default to true |
withLabel | boolean | Control if print message with label (indicating log level) before, default to true |
timestampFormat | string | Define how timestamp looks like, see moment.format() (http://momentjs.com/docs/#/displaying/format/), default to 'YYYY-MM-SS HH:mm:ss' |
highlightStackTrace | string | Control if highlight files in project (in process.cwd() , and not in node_modules ) in error stack trace. default to true |
6.0.0
4.0.0
with --harmony
FAQs
Simple console logger with colors and levels.
The npm package xxd-log receives a total of 0 weekly downloads. As such, xxd-log popularity was classified as not popular.
We found that xxd-log 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.