
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
console.mute
Advanced tools
Temporarily mute the log. Resume and retrieve logged data later. For node.js
Temporarily mute the console in node.js. Works with .log
and .error
. Resume and retrieve logged data later. Useful for intercepting logged data from any module and when testing modules that insist on logging all the things. Based on this gist. Here's a gist that works in the browser.
$ npm install console.mute
require('console.mute'); // adds mute and resume to console
console.log('a'); // will log
console.mute(); // mutes log
console.log('b'); // will not log
console.error('c'); // will not log
var data = console.resume(); // resumes log and returns logged data during mute
console.log('c'); // will log
console.log(data); // logs {stdout: ['b'], stderr: ['c']}
// alter history
console.mute();
console.log('a');
var part = console.resume('preserve'); // preserves history
console.mute();
console.log('b');
var history = console.resume(); // reset history
console.log(history.stdout); // logs ['a', 'b']
$ npm test
MIT
FAQs
Temporarily mute the log. Resume and retrieve logged data later. For node.js
The npm package console.mute receives a total of 3,653 weekly downloads. As such, console.mute popularity was classified as popular.
We found that console.mute 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.