Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
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 1 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.