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

amphibian

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amphibian - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

29

amphibian.js

@@ -1,10 +0,14 @@

#!/usr/bin/env node
var spawn = require('child_process').spawn;
var http = require('http'),
director = require('director'),
broomstick = require('broomstick');
var http = require('http');
var director = require('director');
var broomstick = require('broomstick');
var broom = new broomstick();
var router = new director.http.Router();
var argv = require('optimist')
.usage('Usage: $0 -p [num]')
.alias('p', 'port')
.describe('p', 'Specify a port to run the webserver on')
.default('p', 8080)
.argv;

@@ -18,15 +22,16 @@ router.get('/', broom);

server.listen(8080);
server.listen(argv.p || 8080);
var io = require('socket.io').listen(server);
// websockets were taking too long to fall back
io.set('transports', [
, 'flashsocket'
, 'htmlfile'
, 'xhr-polling'
, 'jsonp-polling'
'flashsocket',
'htmlfile',
'xhr-polling',
'jsonp-polling',
]);
io.sockets.on('connection', function (socket) {
var ssh = spawn('ssh', ['-vtt', 'core']);
var ssh = spawn('ssh', ['-vtt', argv._[0]]);

@@ -33,0 +38,0 @@ // in

@@ -5,3 +5,3 @@ {

"description": "pipe an ssh session to your browser",
"version": "0.0.0",
"version": "0.0.1",
"repository": {

@@ -20,3 +20,4 @@ "type": "git",

"broomstick": "*",
"socket.io": "*"
"socket.io": "*",
"optimist": "*"
},

@@ -23,0 +24,0 @@ "devDependencies": {},

@@ -20,2 +20,6 @@ ![](http://i.imgur.com/gIK0a.png)

##obligatory screenshot
![](http://i.imgur.com/Pe6v7.png)
##license

@@ -22,0 +26,0 @@

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