diff --git a/index.js b/index.js index d7f97b2..2f9ca03 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -var relayClient = require("./relayClient.js") -var relayServer = require("./relayServer.js") +var relayClient = require("./relay-client") +var relayServer = require("./relay-server") exports.createRelayClient = relayClient.createRelayClient; exports.createRelayServer = relayServer.createRelayServer; \ No newline at end of file diff --git a/package.json b/package.json index 32493f6..b0ea294 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "url": "https://github.com/tewarid/node-tcp-relay.git" }, "bin" : { - "tcprelayc" : "./relayc.js", - "tcprelays" : "./relays.js" + "tcprelayc" : "./relay-client-cli.js", + "tcprelays" : "./relay-server-cli.js" }, "dependencies": { "optimist": "latest" diff --git a/relayc.js b/relay-client-cli.js similarity index 91% rename from relayc.js rename to relay-client-cli.js index 6817261..fc6df7d 100644 --- a/relayc.js +++ b/relay-client-cli.js @@ -6,7 +6,7 @@ var argv = require("optimist") console.log(argv); -var relayClient = require("./relayClient.js") +var relayClient = require("./relay-client.js") var newRelayClient = relayClient.createRelayClient(argv.host, argv.port, argv.relayHost, argv.relayPort, argv.numConn); diff --git a/relayClient.js b/relay-client.js similarity index 100% rename from relayClient.js rename to relay-client.js diff --git a/relays.js b/relay-server-cli.js similarity index 89% rename from relays.js rename to relay-server-cli.js index b089f19..0cec9c4 100644 --- a/relays.js +++ b/relay-server-cli.js @@ -6,7 +6,7 @@ var argv = require("optimist") console.info(argv); -var relayServer = require("./relayServer.js"); +var relayServer = require("./relay-server.js"); var newRelayServer = relayServer.createRelayServer(argv.relayPort, argv.servicePort); diff --git a/relayServer.js b/relay-server.js similarity index 100% rename from relayServer.js rename to relay-server.js