
Security News
minimatch Patches 3 High-Severity ReDoS Vulnerabilities
minimatch patched three high-severity ReDoS vulnerabilities that can stall the Node.js event loop, and Socket has released free certified patches.
console-format
Advanced tools
This package is a tool can format console output. Origin console method has been stored in window.nativeConsole or global.nativeConsole. The effect like as follows:
console.log('log');
console.info('info');
console.debug('debug');
console.warn('warn');
console.error('error');
[2021-06-03 11:25:07.930] [LOG] [59764][/Users/charm/Documents/projects/console-format/test.js:3] log
[2021-06-03 11:22:07.933] [INFO] [59489][/Users/charm/Documents/projects/console-format/test.js:3] info
[2021-06-03 11:22:07.945] [DEBUG] [59489][/Users/charm/Documents/projects/console-format/test.js:4] debug
[2021-06-03 11:22:07.945] [WARN] [59489][/Users/charm/Documents/projects/console-format/test.js:5] warn
[2021-06-03 11:22:07.947] [ERROR] [59489][/Users/charm/Documents/projects/console-format/test.js:6] error
npm i console-format
const consoleFormat = require('console-format)
consoleFormat()
console.log("put your log here");
This tools only format console.log console.info, console.warn and console.error, other console method still as origin console style.
Origin console has been stored in global.nativeConsole.
To experience magic effect, just run npm run test
FAQs
format console print
The npm package console-format receives a total of 0 weekly downloads. As such, console-format popularity was classified as not popular.
We found that console-format 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
minimatch patched three high-severity ReDoS vulnerabilities that can stall the Node.js event loop, and Socket has released free certified patches.

Research
/Security News
Socket uncovered 26 malicious npm packages tied to North Korea's Contagious Interview campaign, retrieving a live 9-module infostealer and RAT from the adversary's C2.

Research
An impersonated golang.org/x/crypto clone exfiltrates passwords, executes a remote shell stager, and delivers a Rekoobe backdoor on Linux.