Comparing version 0.0.0 to 0.0.1
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101170
501
35
4
5
+ Addedoptimist@*
+ Addedminimist@0.0.10(transitive)
+ Addedoptimist@0.6.1(transitive)
+ Addedwordwrap@0.0.3(transitive)