Browse Source

deps

master
Lloyd Brookes 11 years ago
parent
commit
e079cb3a2a
  1. 9
      bin/ws.js
  2. 3
      package.json

9
bin/ws.js

@ -4,7 +4,8 @@ var dope = require("console-dope"),
connect = require("connect"),
http = require("http"),
cliArgs = require("command-line-args"),
w = require("wodge"),
o = require("object-ting"),
s = require("string-ting"),
path = require("path"),
loadConfig = require("config-master"),
morgan = require("morgan"),
@ -50,7 +51,7 @@ try {
} catch(err){
halt(err.message);
}
argv = w.extend(storedConfig, argv);
argv = o.extend(storedConfig, argv);
if (argv.config){
dope.log("Stored config: ");
@ -129,11 +130,11 @@ if (argv.config){
}
oldWrite.call(this, data);
total.bytes += data.length;
dope.column(12).write(w.padRight(byteSize(total.bytes, 2), 12));
dope.column(12).write(s.padRight(byteSize(total.bytes, 2), 12));
};
dope.column(24).write(++total.connections);
socket.on("close", function(){
dope.column(24).write(w.padRight(--total.connections));
dope.column(24).write(s.padRight(--total.connections));
});
});
}

3
package.json

@ -22,8 +22,9 @@
"console-dope": "^0.3.0",
"home-path": "^0.1.1",
"morgan": "^1.0.0",
"object-ting": "^0.1.1",
"serve-index": "^1.0.2",
"serve-static": "^1.1.0",
"wodge": "^0.7.0"
"string-ting": "0.0.1"
}
}
Loading…
Cancel
Save