first post

This commit is contained in:
2012-05-25 09:03:56 -04:00
commit 6a753904b7
609 changed files with 252648 additions and 0 deletions

26
Nodejs-Socketio-Mysql-Demo/node_modules/wd/lib/bin.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
#!/usr/bin/env node
var net = require('net')
, repl = require('repl')
, assert = require('assert')
, wd = require('./main')
;
var startRepl = function() {
var r = repl.start('(wd): ');
r.context.assert = assert;
r.context.wd = wd;
r.context.help = function() {
console.log("WD - Shell.");
console.log("Access the webdriver object via the object: 'wd'");
};
net.createServer(function (socket) {
connections += 1;
repl.start("(wd): ", socket);
}).listen("/tmp/node-repl-sock");
};
if (process.argv[2] == "shell") {
startRepl()
}