
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
console-mirroring
Advanced tools
This project aims to provide a Real-time console mirroring on a web page.
This module extends in your node app some console functions:
console.log
console.info
console.warn
console.error
Every function extended got his own color on the web page UI.
npm install console-mirroring --save
Just include it in your app passing a socket.io reference, like this:
var app = require('express')();
var server = require('http').Server(app);
var io = require('socket.io')(server);
server.listen(process.env.PORT || 8080);
require('console-mirroring')(io);
// Every console.* will be sent to the client web UI.
console.log('Hello World'); // white
console.info('Hello World'); // blue
console.warn('Hello World'); // orange
console.error('Hello World'); // red
<div id="#console"></div>
<script src="https://cdn.socket.io/socket.io-1.4.3.js"></script>
<script src="browser.console.mirror.js"></script>
<script type="text/javascript">
var socket = io.connect('http://' + location.host, {
'reconnect': true,
'reconnection delay': 50,
'max reconnection attempts': 300
});
// Make sure to pass a valid socket.io obj to the init method.
consoleMirroring.init({
socketLib: socket,
containerId: '#console',
fullScreen: true,
border: false
});
</script>
{
fullScreen: true/false, // false by default
border: true/false // true by default
}
Rocco Musolino @roccomuso
MIT
FAQs
Real-time console mirroring on a web page.
The npm package console-mirroring receives a total of 5 weekly downloads. As such, console-mirroring popularity was classified as not popular.
We found that console-mirroring 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.