Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mumbler

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mumbler

send stdout through socket.io

  • 0.2.0
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

mumbler

send all those console.log through socket.io on any endpoint, you know, just to keep an eye on things...

Note

I built it just to experiment but then I thought someone could benefit from it.

Rememeber: I didn't fully test the package, I got it to work on a simple Express and a Restify one.

This package HAS NOT BEEN THOROUGHLY TESTED, USAGE ON PRODUCTION IS, THEREFORE, NOT RECOMMENDED

The main purpose is just for development as the package does not enforce any security and it will send any stdout data to connected clients on the designated endpoint.

Install

npm install mumbler --save

Usage with Express

var mumbler = require('mumbler')

// attach to some endpoint
app.get('/mumbler', mumbler(http));

http.listen(3000, function(){
  console.log('Open http://localhost:3000/mumbler on your browser')
});

// spit some output constantly so we can check output
setInterval(function(){console.log(new Date())}, 1000)

Usage with Restify

Restify usually keeps a reference to the http server instance on server.server. Remember, this hasn't been fully tested, I built this just to check on my own developments and then decided it could be useful for someone else.

var restify	  	 		  =	require('restify')
//crate the http server
var server = restify.createServer(/* some config here */)

server.get('/mumbler', require('mumbler')(server.server))

FAQs

Package last updated on 07 Aug 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc