
Security News
Socket Named a Supply Chain Innovator in Latio's 2026 Application Security Market Report
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.
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 4 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
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.

Research
/Security News
Malicious Packagist packages disguised as Laravel utilities install an encrypted PHP RAT via Composer dependencies, enabling remote access and C2 callbacks.